gloomberb 0.16.1 → 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/package.json +2 -1
- package/src/api-client/beneficial-owners.ts +92 -0
- package/src/api-client/data.ts +26 -8
- package/src/api-client/errors.ts +12 -0
- package/src/api-client/geo.ts +363 -0
- package/src/api-client/index.ts +2 -0
- package/src/api-client/market-discovery.ts +10 -0
- package/src/api-client/paths.ts +30 -1
- package/src/api-client/perps.ts +37 -0
- package/src/api-client/request.ts +5 -2
- package/src/api-client/types.ts +2 -0
- package/src/brokers/account-cache.ts +69 -0
- package/src/cli/command-options.ts +74 -0
- package/src/cli/commands/command-utils.ts +37 -0
- package/src/cli/commands/crypto-hints.ts +75 -0
- package/src/cli/commands/market.ts +560 -136
- package/src/cli/commands/overview.ts +136 -48
- package/src/cli/commands/ticker.ts +220 -67
- package/src/cli/desktop-pane-shot.ts +37 -4
- package/src/cli/freshness.ts +61 -0
- package/src/cli/help.ts +27 -6
- package/src/cli/helpers.ts +4 -8
- package/src/cli/history-rows.ts +187 -15
- package/src/cli/index.ts +23 -8
- package/src/cli/listing-arg.ts +321 -0
- package/src/cli/options.ts +5 -1
- package/src/cli/pane-functions/access-gate.ts +42 -0
- package/src/cli/pane-functions/capabilities.ts +5 -0
- package/src/cli/pane-functions/catalog.ts +28 -1
- package/src/cli/pane-functions/data.ts +3 -1
- package/src/cli/pane-functions/dom.ts +87 -16
- package/src/cli/pane-functions/freshness.ts +400 -0
- package/src/cli/pane-functions/function-help.ts +31 -22
- package/src/cli/pane-functions/headless.ts +201 -41
- package/src/cli/pane-functions/index.ts +24 -6
- package/src/cli/pane-functions/options.ts +3 -0
- package/src/cli/pane-functions/report.ts +12 -1
- package/src/cli/pane-functions/resolver.ts +63 -9
- package/src/cli/pane-functions/screenshot-evidence.ts +2 -0
- package/src/cli/pane-functions/screenshot.ts +11 -3
- package/src/cli/registry.ts +6 -3
- package/src/cli/report-tables.ts +460 -0
- package/src/cli/result.ts +53 -29
- package/src/cli/ticker-resolution.ts +7 -5
- package/src/components/chart/composite/composite-chart.tsx +88 -2536
- package/src/components/chart/composite/drawing-store.ts +59 -0
- package/src/components/chart/composite/legend.tsx +319 -0
- package/src/components/chart/composite/panel-bitmap.ts +139 -0
- package/src/components/chart/composite/panel-gestures.ts +59 -0
- package/src/components/chart/composite/panel-labels.ts +107 -0
- package/src/components/chart/composite/panel-surface.tsx +876 -0
- package/src/components/chart/composite/tool-catalog.ts +98 -0
- package/src/components/chart/composite/toolbar.tsx +186 -0
- package/src/components/chart/composite/tools.ts +8 -0
- package/src/components/chart/composite/use-composite-chart-keyboard.ts +703 -0
- package/src/components/chart/composite/use-composite-viewport.ts +143 -0
- package/src/components/command-bar/list/model.ts +5 -0
- package/src/components/command-bar/list/view.tsx +16 -3
- package/src/components/command-bar/pane-templates/workflow.ts +1 -0
- package/src/components/command-bar/routes/ticker-search/actions.ts +5 -0
- package/src/components/command-bar/workflow/ops.ts +1 -1
- package/src/components/command-bar/workflow/tickers.ts +6 -0
- package/src/components/data-table/export.ts +6 -51
- package/src/components/data-table/view.tsx +32 -11
- package/src/components/feedback-dialog.tsx +2 -1
- package/src/components/form-modal/field-row.tsx +2 -2
- package/src/components/layout/detached-pane-shell.tsx +6 -3
- package/src/components/layout/pane/content.tsx +23 -10
- package/src/components/layout/pane/error-boundary.tsx +103 -0
- package/src/components/layout/pane/footer/registration.tsx +68 -23
- package/src/components/layout/pane/header.tsx +11 -11
- package/src/components/layout/shell/active-drag.ts +67 -35
- package/src/components/layout/shell/cursor-occlusion.ts +6 -5
- package/src/components/layout/shell/drag/index.ts +12 -7
- package/src/components/layout/shell/drag/live.ts +122 -0
- package/src/components/layout/shell/drag/overlays.tsx +179 -35
- package/src/components/layout/shell/drag/runtime.ts +62 -50
- package/src/components/layout/shell/drag/slide.ts +10 -0
- package/src/components/layout/shell/index.tsx +37 -51
- package/src/components/layout/shell/menu.ts +2 -1
- package/src/components/layout/shell/native/pointer-runtime.ts +13 -13
- package/src/components/layout/shell/native/surfaces.ts +30 -14
- package/src/components/layout/shell/pane/actions.ts +2 -1
- package/src/components/layout/shell/pane/layers.tsx +419 -168
- package/src/components/layout/shell/terminal-pointer-runtime.ts +18 -18
- package/src/components/layout/shell/window-mode/overlays.tsx +12 -4
- package/src/components/metric-treemap/heat-surface.tsx +43 -16
- package/src/components/metric-treemap/heat-tiles.ts +18 -0
- package/src/components/metric-treemap/layout.ts +2 -0
- package/src/components/onboarding/onboarding-keyboard.ts +311 -0
- package/src/components/onboarding/onboarding-wizard.tsx +101 -788
- package/src/components/onboarding/use-onboarding-broker-form.ts +263 -0
- package/src/components/onboarding/use-onboarding-progress.ts +298 -0
- package/src/components/onboarding/use-onboarding-upgrade.ts +83 -0
- package/src/components/ticker/list-table-view.tsx +13 -1
- package/src/components/ui/fields.tsx +8 -0
- package/src/components/ui/range-track.tsx +10 -3
- package/src/components/ui/status.tsx +8 -2
- package/src/components/ui/tabs.tsx +7 -4
- package/src/components/ui/text-prompt-dialog.tsx +4 -2
- package/src/data/config/store/normalize.ts +17 -1
- package/src/data/json-persistence.ts +17 -3
- package/src/data/json-storage.ts +2 -0
- package/src/data/memory-resource-store.ts +46 -0
- package/src/i18n/es.ts +19 -1
- package/src/i18n/ja.ts +19 -1
- package/src/i18n/ko.ts +19 -1
- package/src/i18n/zh-cn.ts +19 -1
- package/src/i18n/zh-tw.ts +19 -1
- package/src/market-data/coordinator/chart.ts +1 -1
- package/src/market-data/coordinator/quotes.ts +23 -4
- package/src/market-data/fx-closes.ts +72 -0
- package/src/market-data/market/freshness.ts +123 -6
- package/src/market-data/market/session-close-note.ts +57 -0
- package/src/market-data/market/status.ts +151 -0
- package/src/market-data/published-apac-sessions.ts +66 -0
- package/src/market-data/quotes/contributions.ts +2 -0
- package/src/market-data/quotes/freshness.ts +5 -0
- package/src/market-data/quotes/resolution.ts +2 -0
- package/src/market-data/quotes/screener-live-quotes.ts +49 -4
- package/src/plugins/builtin/account-management/pane.tsx +4 -0
- package/src/plugins/builtin/alerts/cli.ts +10 -5
- package/src/plugins/builtin/alerts/index.tsx +1 -0
- package/src/plugins/builtin/analytics/metrics.ts +8 -3
- package/src/plugins/builtin/analytics/pane-model.ts +10 -6
- package/src/plugins/builtin/analytics/risk-client.ts +191 -66
- package/src/plugins/builtin/analytics/risk-fx.ts +102 -0
- package/src/plugins/builtin/analytics/risk-headless.ts +19 -13
- package/src/plugins/builtin/analytics/risk-model.ts +45 -17
- package/src/plugins/builtin/analytics/risk-pane.tsx +1 -0
- package/src/plugins/builtin/analytics/risk-test-data.ts +25 -1
- package/src/plugins/builtin/attention/headless.ts +6 -4
- package/src/plugins/builtin/attention/index.tsx +1 -1
- package/src/plugins/builtin/attention/pane.tsx +2 -2
- package/src/plugins/builtin/awards/headless.ts +1 -0
- package/src/plugins/builtin/awards/pane.tsx +1 -1
- package/src/plugins/builtin/backtest/headless.ts +1 -0
- package/src/plugins/builtin/bond-calculator/headless.ts +1 -0
- package/src/plugins/builtin/buildout/index.tsx +1 -0
- package/src/plugins/builtin/catalysts/detail.tsx +1 -1
- package/src/plugins/builtin/catalysts/headless.ts +3 -1
- package/src/plugins/builtin/cds/headless.ts +2 -0
- package/src/plugins/builtin/central-bank-rates/headless.ts +1 -0
- package/src/plugins/builtin/chart-composer/headless.ts +38 -3
- package/src/plugins/builtin/chart-composer/index.tsx +3 -1
- package/src/plugins/builtin/chart-composer/series-expression.ts +18 -2
- package/src/plugins/builtin/chat/channels.ts +19 -3
- package/src/plugins/builtin/chat/content/composer-runtime.ts +28 -13
- package/src/plugins/builtin/chat/content/footer.tsx +15 -6
- package/src/plugins/builtin/chat/content/index.tsx +120 -21
- package/src/plugins/builtin/chat/content/new-dm-dialog.tsx +261 -113
- package/src/plugins/builtin/chat/content/transcript.tsx +20 -2
- package/src/plugins/builtin/chat/direct-messages.ts +200 -0
- package/src/plugins/builtin/chat/index.tsx +1 -0
- package/src/plugins/builtin/chat/message/desktop.tsx +3 -0
- package/src/plugins/builtin/chat/message/header.tsx +16 -6
- package/src/plugins/builtin/chat/message/inline-tokens.tsx +72 -32
- package/src/plugins/builtin/chat/message/profile-popover.tsx +96 -12
- package/src/plugins/builtin/chat/message/terminal.tsx +3 -0
- package/src/plugins/builtin/chat/message/types.ts +14 -2
- package/src/plugins/builtin/chat/profile-popover.ts +18 -13
- package/src/plugins/builtin/clinical-trials/index.tsx +1 -0
- package/src/plugins/builtin/cloud/askg/executor.ts +2 -1
- package/src/plugins/builtin/cloud/plugin.tsx +1 -0
- package/src/plugins/builtin/cloud/team/module.tsx +1 -0
- package/src/plugins/builtin/cloud/thesis/module.tsx +1 -0
- package/src/plugins/builtin/cloud-tweets/registration.ts +1 -0
- package/src/plugins/builtin/comment-letters/index.tsx +1 -0
- package/src/plugins/builtin/company-attention/headless.ts +5 -1
- package/src/plugins/builtin/company-attention/pane.tsx +2 -2
- package/src/plugins/builtin/company-kpis/headless.ts +1 -0
- package/src/plugins/builtin/congress-trades/headless.ts +1 -0
- package/src/plugins/builtin/correlation/compute.ts +59 -16
- package/src/plugins/builtin/correlation/geo.ts +34 -0
- package/src/plugins/builtin/correlation/headless-schema.ts +4 -1
- package/src/plugins/builtin/correlation/headless.ts +42 -8
- package/src/plugins/builtin/correlation/history.ts +2 -0
- package/src/plugins/builtin/correlation/index.tsx +68 -14
- package/src/plugins/builtin/correlation/matrix/model.ts +17 -2
- package/src/plugins/builtin/correlation/matrix/selection.ts +5 -3
- package/src/plugins/builtin/correlation/relationship/model.ts +1 -1
- package/src/plugins/builtin/correlation/relationship/pane.tsx +4 -2
- package/src/plugins/builtin/correlation/relationship/view-model.ts +16 -1
- package/src/plugins/builtin/correlation/settings.ts +1 -1
- package/src/plugins/builtin/cot/headless.ts +6 -3
- package/src/plugins/builtin/cot/index.tsx +3 -3
- package/src/plugins/builtin/cot/model.ts +36 -3
- package/src/plugins/builtin/cpi/headless.ts +4 -0
- package/src/plugins/builtin/credit-boards/headless.ts +2 -0
- package/src/plugins/builtin/credit-conditions/headless.ts +1 -0
- package/src/plugins/builtin/credit-documents/gauge.tsx +5 -8
- package/src/plugins/builtin/credit-documents/headless.ts +2 -0
- package/src/plugins/builtin/crypto-board/headless.ts +3 -0
- package/src/plugins/builtin/custom-view/loader.ts +1 -1
- package/src/plugins/builtin/debt-maturities/headless.ts +4 -0
- package/src/plugins/builtin/dividend-yield/headless.ts +1 -0
- package/src/plugins/builtin/doe/headless.ts +7 -0
- package/src/plugins/builtin/doe/range-bar.tsx +7 -37
- package/src/plugins/builtin/earnings/headless.ts +5 -0
- package/src/plugins/builtin/earnings-calls/headless.ts +1 -0
- package/src/plugins/builtin/earnings-ripple/client.ts +91 -18
- package/src/plugins/builtin/earnings-ripple/headless.ts +28 -8
- package/src/plugins/builtin/earnings-ripple/index.tsx +2 -2
- package/src/plugins/builtin/earnings-ripple/model.ts +97 -7
- package/src/plugins/builtin/earnings-ripple/pane.tsx +148 -23
- package/src/plugins/builtin/econ/index.tsx +1 -0
- package/src/plugins/builtin/econ-statistics/headless.ts +2 -0
- package/src/plugins/builtin/equity-screener/headless.ts +2 -0
- package/src/plugins/builtin/estimate-revisions/headless.ts +1 -0
- package/src/plugins/builtin/executives/index.tsx +1 -0
- package/src/plugins/builtin/exposure/headless.ts +3 -1
- package/src/plugins/builtin/fear-greed/headless.ts +2 -0
- package/src/plugins/builtin/filing-events/index.tsx +1 -0
- package/src/plugins/builtin/futures-curve/client.ts +12 -3
- package/src/plugins/builtin/futures-curve/headless.ts +39 -10
- package/src/plugins/builtin/futures-curve/index.tsx +3 -3
- package/src/plugins/builtin/futures-curve/model.ts +188 -4
- package/src/plugins/builtin/futures-curve/pane.tsx +51 -9
- package/src/plugins/builtin/gpu/headless.ts +7 -3
- package/src/plugins/builtin/gpu/ladder.tsx +26 -30
- package/src/plugins/builtin/gpu/model.ts +27 -1
- package/src/plugins/builtin/holders/beneficial-client.ts +209 -0
- package/src/plugins/builtin/holders/beneficial-model.ts +279 -0
- package/src/plugins/builtin/holders/beneficial-report.ts +126 -0
- package/src/plugins/builtin/holders/beneficial-view.tsx +241 -0
- package/src/plugins/builtin/holders/client.ts +3 -6
- package/src/plugins/builtin/holders/format.ts +31 -1
- package/src/plugins/builtin/holders/headless.ts +161 -6
- package/src/plugins/builtin/holders/index.tsx +10 -3
- package/src/plugins/builtin/holders/pane.tsx +42 -16
- package/src/plugins/builtin/holders/report-header.ts +136 -0
- package/src/plugins/builtin/holders/table-model.ts +20 -5
- package/src/plugins/builtin/holders/thirteenf-match.ts +29 -1
- package/src/plugins/builtin/holders/types.ts +2 -1
- package/src/plugins/builtin/insider/headless.ts +2 -0
- package/src/plugins/builtin/ipo-calendar/headless.ts +1 -0
- package/src/plugins/builtin/iv-history/headless.ts +4 -1
- package/src/plugins/builtin/jobs/headless.ts +1 -0
- package/src/plugins/builtin/kelly-sizer/index.tsx +1 -0
- package/src/plugins/builtin/kelly-sizer/pane.tsx +12 -6
- package/src/plugins/builtin/kelly-sizer/portfolio.ts +25 -0
- package/src/plugins/builtin/macro-day/headless.ts +2 -0
- package/src/plugins/builtin/market-halts/index.tsx +1 -0
- package/src/plugins/builtin/market-heatmap/data.ts +2 -0
- package/src/plugins/builtin/market-heatmap/headless.ts +135 -0
- package/src/plugins/builtin/market-heatmap/index.tsx +39 -46
- package/src/plugins/builtin/market-heatmap/model.ts +146 -0
- package/src/plugins/builtin/market-heatmap/portfolio.ts +23 -4
- package/src/plugins/builtin/market-movers/headless.ts +2 -0
- package/src/plugins/builtin/market-valuation/headless.ts +2 -0
- package/src/plugins/builtin/members/client.ts +20 -3
- package/src/plugins/builtin/members/headless.ts +5 -3
- package/src/plugins/builtin/members/model.ts +10 -2
- package/src/plugins/builtin/members/pane.tsx +23 -6
- package/src/plugins/builtin/mna/distress/headless.ts +1 -0
- package/src/plugins/builtin/mna/headless.ts +1 -0
- package/src/plugins/builtin/money-markets/headless.ts +1 -0
- package/src/plugins/builtin/news/headless.ts +2 -0
- package/src/plugins/builtin/news/wire/index.tsx +8 -1
- package/src/plugins/builtin/notes/cli.ts +14 -6
- package/src/plugins/builtin/notes/index.tsx +1 -0
- package/src/plugins/builtin/openfda/index.tsx +1 -0
- package/src/plugins/builtin/options-calculator/headless.ts +2 -0
- package/src/plugins/builtin/options-positioning/headless.ts +3 -0
- package/src/plugins/builtin/options-scenario/headless.ts +5 -0
- package/src/plugins/builtin/pe-band/client.ts +48 -3
- package/src/plugins/builtin/pe-band/headless.ts +25 -7
- package/src/plugins/builtin/pe-band/model.ts +92 -16
- package/src/plugins/builtin/pe-band/pane.tsx +33 -16
- package/src/plugins/builtin/perps/client.ts +50 -3
- package/src/plugins/builtin/perps/headless.ts +144 -16
- package/src/plugins/builtin/perps/index.tsx +6 -6
- package/src/plugins/builtin/perps/model.ts +189 -12
- package/src/plugins/builtin/perps/pane.tsx +249 -48
- package/src/plugins/builtin/portfolio-list/account-metrics.ts +16 -1
- package/src/plugins/builtin/portfolio-list/allocation.ts +248 -0
- package/src/plugins/builtin/portfolio-list/cached-account.ts +42 -0
- package/src/plugins/builtin/portfolio-list/cell-version.ts +19 -1
- package/src/plugins/builtin/portfolio-list/cli/portfolio-command.ts +328 -29
- package/src/plugins/builtin/portfolio-list/cli/render.ts +232 -39
- package/src/plugins/builtin/portfolio-list/cli/shared.ts +67 -2
- package/src/plugins/builtin/portfolio-list/cli/watchlist-command.ts +35 -31
- package/src/plugins/builtin/portfolio-list/column-values.ts +124 -47
- package/src/plugins/builtin/portfolio-list/headless.ts +100 -16
- package/src/plugins/builtin/portfolio-list/index.tsx +14 -3
- package/src/plugins/builtin/portfolio-list/live-valuation.ts +7 -5
- package/src/plugins/builtin/portfolio-list/mutations.ts +55 -1
- package/src/plugins/builtin/portfolio-list/pane/data.ts +6 -0
- package/src/plugins/builtin/portfolio-list/pane/index.tsx +53 -16
- package/src/plugins/builtin/portfolio-list/settings.ts +33 -2
- package/src/plugins/builtin/portfolio-list/summary/index.tsx +46 -5
- package/src/plugins/builtin/portfolio-list/summary/live-accounts.ts +11 -1
- package/src/plugins/builtin/portfolio-list/summary/totals.ts +26 -7
- package/src/plugins/builtin/power/headless.ts +3 -1
- package/src/plugins/builtin/rate-path/headless.ts +2 -0
- package/src/plugins/builtin/realized-vol/headless.ts +2 -0
- package/src/plugins/builtin/relative-rotation/headless.ts +2 -0
- package/src/plugins/builtin/research/analyst-headless.ts +3 -0
- package/src/plugins/builtin/research/events-headless.ts +2 -0
- package/src/plugins/builtin/research/headless.ts +2 -0
- package/src/plugins/builtin/research/index.tsx +1 -0
- package/src/plugins/builtin/research/relative-valuation-headless.ts +10 -5
- package/src/plugins/builtin/research/relative-valuation-model.ts +18 -6
- package/src/plugins/builtin/research/relative-valuation-pane.tsx +3 -3
- package/src/plugins/builtin/research-search/index.tsx +1 -0
- package/src/plugins/builtin/revenue-breakdown/headless.ts +2 -0
- package/src/plugins/builtin/reverse-dcf/headless.ts +2 -0
- package/src/plugins/builtin/reverse-dcf/model.ts +2 -1
- package/src/plugins/builtin/risk-factors/headless.ts +2 -0
- package/src/plugins/builtin/scanner/flow-history.ts +2 -13
- package/src/plugins/builtin/scanner/headless.ts +14 -0
- package/src/plugins/builtin/seasonality/headless.ts +2 -0
- package/src/plugins/builtin/sec/command-bar-search.ts +14 -4
- package/src/plugins/builtin/sec/filing-content.ts +42 -17
- package/src/plugins/builtin/sec/forms.ts +12 -0
- package/src/plugins/builtin/sec/headless.ts +2 -0
- package/src/plugins/builtin/sectors/client.ts +1 -0
- package/src/plugins/builtin/sectors/headless.ts +9 -1
- package/src/plugins/builtin/sectors/sector-model.ts +2 -0
- package/src/plugins/builtin/shared/crypto-pair.ts +14 -0
- package/src/plugins/builtin/shared/locked-rows.tsx +1 -1
- package/src/plugins/builtin/shared/members-menu.tsx +260 -0
- package/src/plugins/builtin/shared/report-freshness.ts +57 -0
- package/src/plugins/builtin/shared/research-cells.tsx +4 -9
- package/src/plugins/builtin/short-interest/headless.ts +2 -0
- package/src/plugins/builtin/short-interest/watch-headless.ts +1 -0
- package/src/plugins/builtin/short-volume/headless.ts +1 -0
- package/src/plugins/builtin/short-volume/pane.tsx +1 -1
- package/src/plugins/builtin/social-mentions/headless.ts +1 -0
- package/src/plugins/builtin/social-mentions/pane.tsx +1 -1
- package/src/plugins/builtin/supply-chain/headless.ts +7 -1
- package/src/plugins/builtin/supply-chain/index.tsx +10 -1
- package/src/plugins/builtin/supply-chain/model.ts +27 -2
- package/src/plugins/builtin/supply-chain/pane.tsx +71 -32
- package/src/plugins/builtin/themes/headless.ts +3 -0
- package/src/plugins/builtin/themes/pane.tsx +3 -0
- package/src/plugins/builtin/thirteenf/headless.ts +110 -25
- package/src/plugins/builtin/thirteenf/report-notes.ts +149 -0
- package/src/plugins/builtin/ticker-detail/financials/aggregation.ts +4 -0
- package/src/plugins/builtin/ticker-detail/financials/model.ts +25 -2
- package/src/plugins/builtin/ticker-detail/headless.ts +27 -5
- package/src/plugins/builtin/ticker-detail/index.tsx +1 -0
- package/src/plugins/builtin/ticker-detail/overview/model.ts +17 -5
- package/src/plugins/builtin/ticker-detail/overview-tab.tsx +27 -26
- package/src/plugins/builtin/time-sales/headless.ts +5 -1
- package/src/plugins/builtin/treasury-auctions/headless.ts +1 -0
- package/src/plugins/builtin/volatility/headless.ts +6 -1
- package/src/plugins/builtin/world-indices/headless.ts +2 -0
- package/src/plugins/builtin/world-venue-map/basemap-layer.tsx +159 -0
- package/src/plugins/builtin/world-venue-map/basemap.ts +232 -0
- package/src/plugins/builtin/world-venue-map/client.ts +45 -0
- package/src/plugins/builtin/world-venue-map/country-labels.ts +78 -0
- package/src/plugins/builtin/world-venue-map/entity-detail.tsx +147 -0
- package/src/plugins/builtin/world-venue-map/entity-table.ts +59 -0
- package/src/plugins/builtin/world-venue-map/evidence.ts +77 -0
- package/src/plugins/builtin/world-venue-map/feed.ts +293 -0
- package/src/plugins/builtin/world-venue-map/geo-draw.tsx +248 -0
- package/src/plugins/builtin/world-venue-map/geo-series.ts +142 -0
- package/src/plugins/builtin/world-venue-map/geo-svg.tsx +448 -0
- package/src/plugins/builtin/world-venue-map/headless.ts +146 -0
- package/src/plugins/builtin/world-venue-map/ids.ts +1 -0
- package/src/plugins/builtin/world-venue-map/index.ts +69 -6
- package/src/plugins/builtin/world-venue-map/layered-pane.tsx +565 -0
- package/src/plugins/builtin/world-venue-map/layers.ts +406 -0
- package/src/plugins/builtin/world-venue-map/map-symbols.ts +220 -0
- package/src/plugins/builtin/world-venue-map/map.tsx +557 -85
- package/src/plugins/builtin/world-venue-map/model.ts +23 -4
- package/src/plugins/builtin/world-venue-map/natural-earth/index.chunk.ts +202 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/labels.chunk.ts +244 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/world-50m.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/pane.tsx +35 -44
- package/src/plugins/builtin/world-venue-map/use-geo.ts +55 -0
- package/src/plugins/builtin/world-venue-map/venue-header.tsx +32 -0
- package/src/plugins/builtin/yield-curve/headless.ts +16 -0
- package/src/plugins/loader.ts +13 -1
- package/src/plugins/registry/pane-settings.ts +1 -0
- package/src/renderers/browser/app-services.ts +3 -1
- package/src/renderers/dom/build-assets.ts +81 -3
- package/src/renderers/dom/data-table/dom.ts +31 -0
- package/src/renderers/dom/data-table/index.tsx +5 -0
- package/src/renderers/dom/data-table/row.tsx +2 -0
- package/src/renderers/dom/desktop/controls.tsx +7 -3
- package/src/renderers/dom/desktop/list-view.tsx +35 -10
- package/src/renderers/dom/desktop/popover.tsx +73 -14
- package/src/renderers/dom/host/box.tsx +113 -17
- package/src/renderers/dom/host/drag-shield.ts +24 -0
- package/src/renderers/dom/host/input.tsx +14 -3
- package/src/renderers/dom/host/live-frame.ts +54 -0
- package/src/renderers/dom/host/mouse.ts +8 -1
- package/src/renderers/dom/host/scroll-box.tsx +6 -5
- package/src/renderers/dom/host/tabs.tsx +3 -2
- package/src/renderers/dom/styles.css +16 -9
- package/src/renderers/electrobun/bun/desktop/backend-requests.ts +7 -0
- package/src/renderers/electrobun/bun/desktop/backend.ts +2 -0
- package/src/renderers/electrobun/bun/desktop/initialization.ts +13 -0
- package/src/renderers/electrobun/shared/protocol.ts +10 -1
- package/src/renderers/electrobun/view/backend-rpc.ts +10 -4
- package/src/renderers/electrobun/view/cli-pane-shot-entry.tsx +4 -0
- package/src/renderers/electrobun/view/host/native.ts +0 -10
- package/src/renderers/electrobun/view/host/window-move.ts +28 -0
- package/src/renderers/electrobun/view/remote/persistence.ts +15 -2
- package/src/renderers/electrobun/view/rpc-timeout.ts +14 -3
- package/src/renderers/electrobun/view/ui-host.tsx +2 -5
- package/src/renderers/opentui/host.tsx +5 -0
- package/src/renderers/opentui/ui-host.tsx +7 -1
- package/src/sources/gloomberb-cloud/index.ts +25 -4
- package/src/sources/gloomberb-cloud/normalizers.ts +43 -23
- package/src/sources/provider-router/batches.ts +3 -3
- package/src/sources/provider-router/cached-routes.ts +4 -1
- package/src/sources/provider-router/financial-routes.ts +2 -2
- package/src/sources/provider-router/financials.ts +76 -12
- package/src/sources/provider-router/history.ts +15 -10
- package/src/sources/provider-router/primary.ts +2 -2
- package/src/sources/sec-registrant.ts +75 -0
- package/src/state/app/context/index.tsx +24 -8
- package/src/state/hooks/quote-streaming.ts +41 -26
- package/src/state/pane-scroll-registry.tsx +67 -35
- package/src/sync/core-contributors.ts +4 -0
- package/src/telemetry/crash-reports.ts +4 -1
- package/src/test-support/cli-context.ts +10 -2
- package/src/test-support/margin-account.ts +108 -0
- package/src/theme/heat-colors.ts +266 -84
- package/src/time-series/resolution.ts +15 -0
- package/src/time-series/resolve.ts +1 -1
- package/src/time-series/use-chart-resolution.ts +1 -1
- package/src/types/context-menu.ts +6 -0
- package/src/types/data-provider.ts +2 -0
- package/src/types/financials.ts +35 -3
- package/src/types/headless.ts +79 -2
- package/src/types/plugin.ts +20 -1
- package/src/types/ticker.ts +15 -0
- package/src/ui/host.tsx +26 -0
- package/src/ui/index.tsx +8 -3
- package/src/ui/scroll-box-axis.ts +26 -0
- package/src/updater/index.ts +9 -11
- package/src/utils/async-deadline.ts +21 -0
- package/src/utils/cli-output.ts +5 -1
- package/src/utils/crypto-pair.ts +41 -0
- package/src/utils/currency-units.ts +19 -0
- package/src/utils/depositary-receipt.ts +70 -0
- package/src/utils/display-number.ts +63 -0
- package/src/utils/exchanges.ts +72 -0
- package/src/utils/fire-and-forget.ts +24 -0
- package/src/utils/format.ts +13 -0
- package/src/utils/fundamentals.ts +17 -1
- package/src/utils/price-earnings.ts +70 -3
- package/src/utils/price-history-integrity.ts +19 -6
- package/src/utils/price-history.ts +58 -13
- package/src/utils/rpc-timeout-error.ts +27 -0
- package/src/utils/sec.ts +13 -1
- package/src/utils/utc-time.ts +79 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { useCallback, useMemo, useState } from "react";
|
|
2
|
+
import { TextAttributes, useRendererHost } from "../../../ui";
|
|
3
|
+
import {
|
|
4
|
+
DataTableView,
|
|
5
|
+
EmptyState,
|
|
6
|
+
PaneStatusBody,
|
|
7
|
+
usePaneFooter,
|
|
8
|
+
usePaneNoticeFooter,
|
|
9
|
+
type DataTableCell,
|
|
10
|
+
type DataTableKeyEvent,
|
|
11
|
+
} from "../../../components";
|
|
12
|
+
import { handleRefreshKey, loadingErrorFooterInfo } from "../../../components/data-table/table-pane";
|
|
13
|
+
import { useAsyncResource } from "../../../react/async-resource";
|
|
14
|
+
import { useAutoRefresh } from "../../../react/auto-refresh";
|
|
15
|
+
import { colors, priceColor } from "../../../theme/colors";
|
|
16
|
+
import { isPlainKey } from "../../../utils/keyboard";
|
|
17
|
+
import { nextHeaderSort } from "../../../utils/sort-values";
|
|
18
|
+
import { usePluginAppActions, usePluginPaneState } from "../../runtime";
|
|
19
|
+
import { SignInWall } from "../cloud/auth-actions";
|
|
20
|
+
import { isCloudSessionRequired, useResearchCloudSession } from "../shared/research-cloud-session";
|
|
21
|
+
import { openSecFilingInPane } from "../sec/command-bar-search";
|
|
22
|
+
import { cachedBeneficialOwners, loadBeneficialOwners } from "./beneficial-client";
|
|
23
|
+
import { beneficialCoverageNotices, beneficialListUnreadable } from "./beneficial-report";
|
|
24
|
+
import {
|
|
25
|
+
buildBeneficialColumns,
|
|
26
|
+
buildBeneficialRows,
|
|
27
|
+
DEFAULT_BENEFICIAL_SORT,
|
|
28
|
+
formatFilerName,
|
|
29
|
+
formatOwnerShares,
|
|
30
|
+
formatPercentOfClass,
|
|
31
|
+
formatPointChange,
|
|
32
|
+
sortBeneficialRows,
|
|
33
|
+
stakeMarker,
|
|
34
|
+
type BeneficialColumn,
|
|
35
|
+
type BeneficialColumnId,
|
|
36
|
+
type BeneficialOwnerRow,
|
|
37
|
+
type BeneficialSortPreference,
|
|
38
|
+
} from "./beneficial-model";
|
|
39
|
+
import type { Holder13FMatch } from "./thirteenf-match";
|
|
40
|
+
import type { HolderRow } from "./types";
|
|
41
|
+
|
|
42
|
+
const STALE_SEGMENT = { id: "stale", parts: [{ text: "stale", tone: "warning" as const }] };
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The 13D/G tab: who disclosed more than 5% of the class, the stake each
|
|
46
|
+
* filer's latest report gives and how it moved, one row per filer, joined to
|
|
47
|
+
* the Table tab's 13F holders for the quarter's action. A latest report is
|
|
48
|
+
* the latest disclosure, not today's position.
|
|
49
|
+
*/
|
|
50
|
+
export function BeneficialOwnersView({
|
|
51
|
+
focused,
|
|
52
|
+
width,
|
|
53
|
+
symbol,
|
|
54
|
+
holderRows,
|
|
55
|
+
fundMatches,
|
|
56
|
+
onCycleView,
|
|
57
|
+
onRefreshHolders,
|
|
58
|
+
}: {
|
|
59
|
+
focused: boolean;
|
|
60
|
+
width: number;
|
|
61
|
+
symbol: string | null;
|
|
62
|
+
holderRows: readonly HolderRow[];
|
|
63
|
+
fundMatches: ReadonlyMap<string, Holder13FMatch>;
|
|
64
|
+
onCycleView: () => void;
|
|
65
|
+
onRefreshHolders: () => void;
|
|
66
|
+
}) {
|
|
67
|
+
const rendererHost = useRendererHost();
|
|
68
|
+
const { createPaneFromTemplate } = usePluginAppActions();
|
|
69
|
+
const session = useResearchCloudSession();
|
|
70
|
+
const [sortPreference, setSortPreference] = usePluginPaneState<BeneficialSortPreference>(
|
|
71
|
+
"beneficialSort",
|
|
72
|
+
DEFAULT_BENEFICIAL_SORT,
|
|
73
|
+
);
|
|
74
|
+
const [selectedId, setSelectedId] = useState<string | null>(null);
|
|
75
|
+
|
|
76
|
+
// A session change retries a request the sign-in wall was shown for.
|
|
77
|
+
const loader = useMemo(
|
|
78
|
+
() => symbol ? (force: boolean) => loadBeneficialOwners(symbol, force) : null,
|
|
79
|
+
[symbol, session.requestKey],
|
|
80
|
+
);
|
|
81
|
+
const resource = useAsyncResource(loader, {
|
|
82
|
+
initialData: () => symbol ? cachedBeneficialOwners(symbol) : null,
|
|
83
|
+
clearOnError: (error) => error instanceof Error && isCloudSessionRequired(error.message),
|
|
84
|
+
});
|
|
85
|
+
useAutoRefresh(resource.updatedAt, resource.load);
|
|
86
|
+
const payload = resource.data?.payload ?? null;
|
|
87
|
+
|
|
88
|
+
const rows = useMemo(
|
|
89
|
+
() => buildBeneficialRows(payload?.owners ?? [], holderRows, fundMatches),
|
|
90
|
+
[fundMatches, holderRows, payload],
|
|
91
|
+
);
|
|
92
|
+
const sortedRows = useMemo(() => sortBeneficialRows(rows, sortPreference), [rows, sortPreference]);
|
|
93
|
+
const columns = useMemo(() => buildBeneficialColumns(width), [width]);
|
|
94
|
+
const selectedRow = sortedRows.find((row) => row.id === selectedId) ?? sortedRows[0] ?? null;
|
|
95
|
+
|
|
96
|
+
const openFiling = useCallback((row: BeneficialOwnerRow | null | undefined) => {
|
|
97
|
+
if (!row || !symbol) return;
|
|
98
|
+
openSecFilingInPane({ createPaneFromTemplate }, symbol, row.filing.accessionNumber);
|
|
99
|
+
}, [createPaneFromTemplate, symbol]);
|
|
100
|
+
|
|
101
|
+
const openFilingUrl = useCallback(() => {
|
|
102
|
+
const url = selectedRow?.filing.filingUrl;
|
|
103
|
+
if (url) void rendererHost.openExternal(url);
|
|
104
|
+
}, [rendererHost, selectedRow]);
|
|
105
|
+
|
|
106
|
+
const refresh = useCallback(() => {
|
|
107
|
+
void resource.reload();
|
|
108
|
+
onRefreshHolders();
|
|
109
|
+
}, [onRefreshHolders, resource]);
|
|
110
|
+
|
|
111
|
+
const handleKeyDown = useCallback((event: DataTableKeyEvent) => {
|
|
112
|
+
if (handleRefreshKey(event, refresh, { stopPropagation: true })) return true;
|
|
113
|
+
if (isPlainKey(event, "s")) {
|
|
114
|
+
event.preventDefault?.();
|
|
115
|
+
event.stopPropagation?.();
|
|
116
|
+
onCycleView();
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
return false;
|
|
120
|
+
}, [onCycleView, refresh]);
|
|
121
|
+
|
|
122
|
+
const handleHeaderClick = useCallback((columnId: string) => {
|
|
123
|
+
setSortPreference((current) => nextHeaderSort(current, columnId as BeneficialColumnId, {
|
|
124
|
+
firstDirection: (id) => id === "filer" || id === "form" ? "asc" : "desc",
|
|
125
|
+
}));
|
|
126
|
+
}, [setSortPreference]);
|
|
127
|
+
|
|
128
|
+
const renderCell = useCallback((
|
|
129
|
+
row: BeneficialOwnerRow,
|
|
130
|
+
column: BeneficialColumn,
|
|
131
|
+
_index: number,
|
|
132
|
+
rowState: { selected: boolean },
|
|
133
|
+
): DataTableCell => {
|
|
134
|
+
const { filing } = row;
|
|
135
|
+
// A report of zero reads as history; a stake under 5% is still a stake.
|
|
136
|
+
const exited = row.stake === "exited";
|
|
137
|
+
const tone = exited ? colors.textMuted : colors.text;
|
|
138
|
+
switch (column.id) {
|
|
139
|
+
case "filer":
|
|
140
|
+
return {
|
|
141
|
+
text: formatFilerName(filing.filerName, Math.max(0, filing.reportingPersons.length - 1), column.width),
|
|
142
|
+
value: filing.filerName,
|
|
143
|
+
color: exited ? colors.textMuted : rowState.selected ? colors.selectedText : colors.textBright,
|
|
144
|
+
attributes: exited ? undefined : TextAttributes.BOLD,
|
|
145
|
+
};
|
|
146
|
+
case "form":
|
|
147
|
+
return { text: row.formLabel, color: tone };
|
|
148
|
+
case "percentOfClass": {
|
|
149
|
+
// A column too narrow for `4.9% <5%` keeps the figure alone.
|
|
150
|
+
const marker = column.width >= formatPercentOfClass(row, { marker: true }).length;
|
|
151
|
+
return {
|
|
152
|
+
text: formatPercentOfClass(row, { marker }),
|
|
153
|
+
value: filing.percentOfClass,
|
|
154
|
+
color: row.stake === "holder" ? colors.textBright : stakeMarker(row.stake) ? colors.textDim : colors.text,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
case "change":
|
|
158
|
+
return {
|
|
159
|
+
text: formatPointChange(row.changePoints),
|
|
160
|
+
value: row.changePoints,
|
|
161
|
+
color: row.changePoints == null || row.changePoints === 0 ? colors.textDim : priceColor(row.changePoints),
|
|
162
|
+
};
|
|
163
|
+
case "shares":
|
|
164
|
+
return { text: formatOwnerShares(filing.shares), value: filing.shares, color: tone };
|
|
165
|
+
case "eventDate":
|
|
166
|
+
return { text: filing.eventDate ?? "-", value: filing.eventDate, color: colors.textDim };
|
|
167
|
+
case "filingDate":
|
|
168
|
+
return { text: filing.filingDate, value: filing.filingDate, color: colors.textDim };
|
|
169
|
+
case "thirteenF": {
|
|
170
|
+
const action = row.thirteenF;
|
|
171
|
+
if (!action) return { text: "-", value: null, color: colors.textDim };
|
|
172
|
+
return { text: action.label, color: action.value === 0 ? colors.textDim : priceColor(action.value) };
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}, []);
|
|
176
|
+
|
|
177
|
+
const authWall = !payload && isCloudSessionRequired(resource.error);
|
|
178
|
+
const error = authWall ? null : resource.error;
|
|
179
|
+
// Listed filings that could not be read are a failure, not "no filings".
|
|
180
|
+
const unreadable = !!payload && beneficialListUnreadable(payload);
|
|
181
|
+
const coverageNotices = useMemo(
|
|
182
|
+
() => unreadable ? [] : beneficialCoverageNotices(payload?.coverage),
|
|
183
|
+
[payload, unreadable],
|
|
184
|
+
);
|
|
185
|
+
usePaneNoticeFooter({
|
|
186
|
+
registrationId: "holders-13dg:coverage",
|
|
187
|
+
notices: coverageNotices,
|
|
188
|
+
focused,
|
|
189
|
+
title: "13D/13G coverage",
|
|
190
|
+
});
|
|
191
|
+
usePaneFooter("holders-13dg", () => ({
|
|
192
|
+
info: [
|
|
193
|
+
...(payload?.asOf ? [{ id: "as-of", parts: [{ text: `as of ${payload.asOf.slice(0, 10)}`, tone: "muted" as const }] }] : []),
|
|
194
|
+
...(payload && resource.data?.stale ? [STALE_SEGMENT] : []),
|
|
195
|
+
...loadingErrorFooterInfo(resource.loading, payload ? error : null),
|
|
196
|
+
],
|
|
197
|
+
hints: selectedRow?.filing.filingUrl
|
|
198
|
+
? [{ id: "filing", key: "o", label: "pen filing", onPress: openFilingUrl }]
|
|
199
|
+
: [],
|
|
200
|
+
}), [error, openFilingUrl, payload, resource.data?.stale, resource.loading, selectedRow]);
|
|
201
|
+
|
|
202
|
+
if (!symbol) return <EmptyState title="No ticker selected." />;
|
|
203
|
+
if (authWall) {
|
|
204
|
+
return <SignInWall placement="holders-13dg-signin" action="view 13D/13G filings" needsVerification={session.needsVerification} />;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
return (
|
|
208
|
+
<PaneStatusBody
|
|
209
|
+
loading={resource.loading && !payload}
|
|
210
|
+
error={!payload ? error
|
|
211
|
+
: unreadable ? `${payload.coverage?.filings ?? 0} filings are listed for ${symbol} but none could be read this time. A refresh retries them.`
|
|
212
|
+
: null}
|
|
213
|
+
subject="13D/13G filings"
|
|
214
|
+
empty={!!payload && sortedRows.length === 0}
|
|
215
|
+
emptyTitle={`No 13D/13G filings in the last 4 years for ${symbol}.`}
|
|
216
|
+
>
|
|
217
|
+
<DataTableView<BeneficialOwnerRow, BeneficialColumn>
|
|
218
|
+
focused={focused}
|
|
219
|
+
selection={{
|
|
220
|
+
kind: "id",
|
|
221
|
+
selectedId: selectedRow?.id ?? null,
|
|
222
|
+
getId: (row) => row.id,
|
|
223
|
+
onChange: (id) => setSelectedId(id),
|
|
224
|
+
}}
|
|
225
|
+
onActivate={openFiling}
|
|
226
|
+
onRootKeyDown={handleKeyDown}
|
|
227
|
+
resetScrollKey={symbol}
|
|
228
|
+
rootWidth={width}
|
|
229
|
+
columns={columns}
|
|
230
|
+
items={sortedRows}
|
|
231
|
+
sortColumnId={sortPreference.columnId}
|
|
232
|
+
sortDirection={sortPreference.direction}
|
|
233
|
+
onHeaderClick={handleHeaderClick}
|
|
234
|
+
getItemKey={(row) => row.id}
|
|
235
|
+
renderCell={renderCell}
|
|
236
|
+
selectedTextOverridesCellColor
|
|
237
|
+
emptyStateTitle={`No 13D/13G filings in the last 4 years for ${symbol}.`}
|
|
238
|
+
/>
|
|
239
|
+
</PaneStatusBody>
|
|
240
|
+
);
|
|
241
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DataProvider, MarketDataRequestContext } from "../../../types/data-provider";
|
|
2
2
|
import type { HolderData } from "../../../types/financials";
|
|
3
|
+
import { holderStakeMarketCap, holderValueCurrency } from "./format";
|
|
3
4
|
|
|
4
5
|
export async function loadHolderData(
|
|
5
6
|
provider: DataProvider,
|
|
@@ -20,10 +21,6 @@ export async function loadHolderSnapshot(
|
|
|
20
21
|
loadHolderData(provider, symbol, exchange),
|
|
21
22
|
provider.getTickerFinancials(symbol, exchange).catch(() => null),
|
|
22
23
|
]);
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
&& financials.quote.currency !== data.currency
|
|
26
|
-
? undefined
|
|
27
|
-
: quoteMarketCap;
|
|
28
|
-
return { data, marketCap };
|
|
24
|
+
const quote = financials?.quote;
|
|
25
|
+
return { data, marketCap: holderStakeMarketCap(quote?.marketCap, quote?.currency, holderValueCurrency(data)) };
|
|
29
26
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HolderRecord } from "../../../types/financials";
|
|
1
|
+
import type { HolderData, HolderRecord } from "../../../types/financials";
|
|
2
2
|
import { formatCompact, formatPercent, formatPercentRaw } from "../../../utils/format";
|
|
3
3
|
import type { HolderRow } from "./types";
|
|
4
4
|
|
|
@@ -16,15 +16,45 @@ export function formatMaybePercent(value: number | undefined): string {
|
|
|
16
16
|
return Math.abs(value) <= 1 ? formatPercent(value) : formatPercentRaw(value);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* The currency holder values are in. Gloom Cloud names it when it differs
|
|
21
|
+
* from the listing's (dollars from 13F filings on a London line); an older
|
|
22
|
+
* service priced them in the listing's currency.
|
|
23
|
+
*/
|
|
24
|
+
export function holderValueCurrency(
|
|
25
|
+
data: Pick<HolderData, "valueCurrency" | "currency"> | null | undefined,
|
|
26
|
+
fallback?: string,
|
|
27
|
+
): string | undefined {
|
|
28
|
+
return data?.valueCurrency?.trim() || data?.currency?.trim() || fallback;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The market cap a holding's value can be divided by: only one in the
|
|
33
|
+
* values' own currency. A cap whose currency, or values whose currency, is
|
|
34
|
+
* not known is taken as it was before currencies were stated.
|
|
35
|
+
*/
|
|
36
|
+
export function holderStakeMarketCap(
|
|
37
|
+
marketCap: number | undefined,
|
|
38
|
+
marketCapCurrency: string | null | undefined,
|
|
39
|
+
valueCurrency: string | null | undefined,
|
|
40
|
+
): number | undefined {
|
|
41
|
+
if (marketCap == null) return undefined;
|
|
42
|
+
if (marketCapCurrency && valueCurrency && marketCapCurrency !== valueCurrency) return undefined;
|
|
43
|
+
return marketCap;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** The reported stake, else the value over a market cap `holderStakeMarketCap` allowed. */
|
|
19
47
|
export function resolveHolderOwnershipPercent(row: Pick<HolderRecord, "percentHeld" | "value">, marketCap: number | undefined): number | undefined {
|
|
20
48
|
if (row.percentHeld != null) return row.percentHeld;
|
|
21
49
|
if (row.value == null || row.value < 0 || marketCap == null || marketCap <= 0) return undefined;
|
|
22
50
|
return row.value / marketCap;
|
|
23
51
|
}
|
|
24
52
|
|
|
53
|
+
/** A stake too small for two decimals reads "<0.01%", not a zero. */
|
|
25
54
|
export function formatHolderOwnershipPercent(value: number | undefined): string {
|
|
26
55
|
if (value == null) return "-";
|
|
27
56
|
const percent = Math.abs(value) <= 1 ? value * 100 : value;
|
|
57
|
+
if (percent > 0 && percent < 0.005) return "<0.01%";
|
|
28
58
|
return `${percent.toFixed(2)}%`;
|
|
29
59
|
}
|
|
30
60
|
|
|
@@ -12,11 +12,40 @@ import {
|
|
|
12
12
|
formatMaybePercent,
|
|
13
13
|
formatMoneyCompact,
|
|
14
14
|
formatSignedCompact,
|
|
15
|
+
holderValueCurrency,
|
|
15
16
|
resolveHolderOwnershipPercent,
|
|
16
17
|
} from "./format";
|
|
17
18
|
import { buildRows, sortRows } from "./table-model";
|
|
18
19
|
import type { HolderData } from "../../../types/financials";
|
|
19
20
|
import type { HolderColumnId } from "./types";
|
|
21
|
+
import { SEC_FILINGS } from "../shared/report-freshness";
|
|
22
|
+
import {
|
|
23
|
+
holderShareBasisMarker,
|
|
24
|
+
holderShareBasisNote,
|
|
25
|
+
holderValueBasis,
|
|
26
|
+
holdersHeaderLine,
|
|
27
|
+
moneyColumnHeader,
|
|
28
|
+
nonUsHolderCaveat,
|
|
29
|
+
sharedReportDate,
|
|
30
|
+
} from "./report-header";
|
|
31
|
+
|
|
32
|
+
/** Columns a source fills only when it reports the quarter's change. */
|
|
33
|
+
const CHANGE_COLUMN_KEYS = new Set(["changeShares", "changePercent"]);
|
|
34
|
+
/** Shown only when some row is held as depositary receipts, as on a home line abroad. */
|
|
35
|
+
const BASIS_COLUMN_KEY = "shareBasis";
|
|
36
|
+
import type { BeneficialOwnersPayload } from "../../../api-client/beneficial-owners";
|
|
37
|
+
import { fetchBeneficialOwners, type BeneficialOwnersRequest } from "./beneficial-client";
|
|
38
|
+
import type { BeneficialColumnId } from "./beneficial-model";
|
|
39
|
+
import {
|
|
40
|
+
BENEFICIAL_REPORT_COLUMNS,
|
|
41
|
+
beneficialCoverageNotices,
|
|
42
|
+
beneficialListComplete,
|
|
43
|
+
beneficialListFacts,
|
|
44
|
+
beneficialRouteForm,
|
|
45
|
+
buildBeneficialReportRows,
|
|
46
|
+
HOLDER_FORMS,
|
|
47
|
+
parseHolderForm,
|
|
48
|
+
} from "./beneficial-report";
|
|
20
49
|
|
|
21
50
|
const HOLDER_COLUMNS: HeadlessPaneColumn[] = [
|
|
22
51
|
{ key: "name", header: "Holder" },
|
|
@@ -36,6 +65,11 @@ const HOLDER_COLUMNS: HeadlessPaneColumn[] = [
|
|
|
36
65
|
align: "right",
|
|
37
66
|
format: (value) => value == null ? "-" : formatCompact(Number(value)),
|
|
38
67
|
},
|
|
68
|
+
{
|
|
69
|
+
key: BASIS_COLUMN_KEY,
|
|
70
|
+
header: "Basis",
|
|
71
|
+
format: (_value, row) => holderShareBasisMarker(row),
|
|
72
|
+
},
|
|
39
73
|
{
|
|
40
74
|
key: "changeShares",
|
|
41
75
|
header: "Chg",
|
|
@@ -71,6 +105,17 @@ const SORT_COLUMNS: Record<string, HolderColumnId> = {
|
|
|
71
105
|
date: "reportDate",
|
|
72
106
|
};
|
|
73
107
|
|
|
108
|
+
/** The same sort keys order the 13D/13G rows; `value` and `held` are the percent of class. */
|
|
109
|
+
const BENEFICIAL_SORT_COLUMNS: Record<string, BeneficialColumnId> = {
|
|
110
|
+
holder: "filer",
|
|
111
|
+
value: "percentOfClass",
|
|
112
|
+
shares: "shares",
|
|
113
|
+
change: "change",
|
|
114
|
+
"change-percent": "thirteenF",
|
|
115
|
+
held: "percentOfClass",
|
|
116
|
+
date: "filingDate",
|
|
117
|
+
};
|
|
118
|
+
|
|
74
119
|
interface HolderSnapshot {
|
|
75
120
|
data: HolderData;
|
|
76
121
|
marketCap?: number;
|
|
@@ -82,17 +127,28 @@ export interface HoldersHeadlessDependencies {
|
|
|
82
127
|
args: HeadlessPaneLoadArgs,
|
|
83
128
|
ctx: HeadlessPaneContext,
|
|
84
129
|
): Promise<HolderSnapshot>;
|
|
130
|
+
loadBeneficialOwners(
|
|
131
|
+
symbol: string,
|
|
132
|
+
request: BeneficialOwnersRequest,
|
|
133
|
+
ctx: HeadlessPaneContext,
|
|
134
|
+
): Promise<BeneficialOwnersPayload>;
|
|
85
135
|
}
|
|
86
136
|
|
|
87
137
|
const defaultDependencies: HoldersHeadlessDependencies = {
|
|
88
138
|
loadSnapshot: (symbol, _args, ctx) => loadHolderSnapshot(ctx.marketData, symbol),
|
|
139
|
+
loadBeneficialOwners: (symbol, request, ctx) => fetchBeneficialOwners(symbol, request, {
|
|
140
|
+
client: ctx.apiClient,
|
|
141
|
+
signal: ctx.signal,
|
|
142
|
+
}),
|
|
89
143
|
};
|
|
90
144
|
|
|
91
145
|
export function createHoldersHeadless(
|
|
92
|
-
|
|
146
|
+
overrides: Partial<HoldersHeadlessDependencies> = {},
|
|
93
147
|
): HeadlessPaneDefinition<"rows"> {
|
|
148
|
+
const dependencies = { ...defaultDependencies, ...overrides };
|
|
94
149
|
return {
|
|
95
150
|
shape: "rows",
|
|
151
|
+
freshness: { ...SEC_FILINGS, basis: "13F filings" },
|
|
96
152
|
argument: {
|
|
97
153
|
kind: "ticker",
|
|
98
154
|
placeholder: "ticker",
|
|
@@ -124,23 +180,81 @@ export function createHoldersHeadless(
|
|
|
124
180
|
},
|
|
125
181
|
{
|
|
126
182
|
key: "view",
|
|
127
|
-
description: "Rendered pane view: the holder table or the
|
|
183
|
+
description: "Rendered pane view: the holder table, the ownership treemap or the 13D/13G beneficial owners.",
|
|
128
184
|
type: "enum",
|
|
129
|
-
values: [{ value: "table" }, { value: "chart" }],
|
|
185
|
+
values: [{ value: "table" }, { value: "chart" }, { value: "13dg", aliases: ["beneficial"] }],
|
|
130
186
|
defaultValue: "table",
|
|
131
187
|
pluginState: { pluginId: "ticker-research", key: "viewMode" },
|
|
132
188
|
},
|
|
189
|
+
{
|
|
190
|
+
key: "form",
|
|
191
|
+
description: "Rows: 13f for institutional holders, 13d or 13g for beneficial owners over 5% of the class (activists, crowding into large stakes), all for both kinds.",
|
|
192
|
+
type: "enum",
|
|
193
|
+
values: HOLDER_FORMS.map((value) => ({ value })),
|
|
194
|
+
defaultValue: "13f",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
key: "history",
|
|
198
|
+
description: "With a 13d, 13g or all form, every report newest first instead of the latest per filer.",
|
|
199
|
+
type: "boolean",
|
|
200
|
+
defaultValue: false,
|
|
201
|
+
},
|
|
133
202
|
],
|
|
134
203
|
columns: HOLDER_COLUMNS,
|
|
135
204
|
describe: (args) => `Holders | ${args.symbols[0]}`,
|
|
136
205
|
async load(args, ctx) {
|
|
137
206
|
const symbol = args.symbols[0]!;
|
|
207
|
+
const requestedForm = parseHolderForm(args.options.form) ?? "13f";
|
|
208
|
+
// The 13D/G view reports what it shows when no form is asked for.
|
|
209
|
+
const form = requestedForm === "13f" && args.options.view === "13dg" ? "all" : requestedForm;
|
|
210
|
+
if (form !== "13f") {
|
|
211
|
+
const history = args.options.history === true;
|
|
212
|
+
const [payload, snapshot] = await Promise.all([
|
|
213
|
+
dependencies.loadBeneficialOwners(symbol, { form: beneficialRouteForm(form), history }, ctx),
|
|
214
|
+
// The 13F column is a join; the 13D/13G rows stand without it.
|
|
215
|
+
dependencies.loadSnapshot(symbol, args, ctx).catch(() => null),
|
|
216
|
+
]);
|
|
217
|
+
const rows = buildBeneficialReportRows(payload, {
|
|
218
|
+
history,
|
|
219
|
+
holders: snapshot?.data ?? null,
|
|
220
|
+
sort: {
|
|
221
|
+
columnId: BENEFICIAL_SORT_COLUMNS[String(args.options.sort)] ?? "percentOfClass",
|
|
222
|
+
direction: args.options.order === "asc" ? "asc" : "desc",
|
|
223
|
+
},
|
|
224
|
+
});
|
|
225
|
+
const limited = rows.slice(0, Number(args.options.limit));
|
|
226
|
+
return {
|
|
227
|
+
columns: BENEFICIAL_REPORT_COLUMNS,
|
|
228
|
+
rows: limited,
|
|
229
|
+
// Reports that could not be read this time are missing from the rows.
|
|
230
|
+
complete: beneficialListComplete(payload),
|
|
231
|
+
freshness: { ...SEC_FILINGS, basis: "13D/13G filings", observedKey: "filingDate" },
|
|
232
|
+
metadata: {
|
|
233
|
+
symbol: payload.ticker || symbol,
|
|
234
|
+
name: payload.companyName || null,
|
|
235
|
+
cik: payload.cik || null,
|
|
236
|
+
form,
|
|
237
|
+
history,
|
|
238
|
+
asOf: payload.asOf,
|
|
239
|
+
coverage: payload.coverage,
|
|
240
|
+
notices: [
|
|
241
|
+
[payload.companyName || symbol, ...beneficialListFacts(payload, form, rows.length, history)].join(" · "),
|
|
242
|
+
...beneficialCoverageNotices(payload.coverage),
|
|
243
|
+
],
|
|
244
|
+
returned: limited.length,
|
|
245
|
+
total: rows.length,
|
|
246
|
+
},
|
|
247
|
+
};
|
|
248
|
+
}
|
|
138
249
|
const { data, marketCap } = await dependencies.loadSnapshot(symbol, args, ctx);
|
|
139
250
|
const currency = data.currency ?? "USD";
|
|
140
|
-
|
|
251
|
+
// A London line's values can be dollars from the 13F filings; they are labelled and formatted as such.
|
|
252
|
+
const valueCurrency = holderValueCurrency(data, currency)!;
|
|
253
|
+
const sorted = sortRows(buildRows(data), {
|
|
141
254
|
columnId: SORT_COLUMNS[String(args.options.sort)] ?? "value",
|
|
142
255
|
direction: args.options.order === "asc" ? "asc" : "desc",
|
|
143
|
-
}, marketCap)
|
|
256
|
+
}, marketCap);
|
|
257
|
+
const rows = sorted
|
|
144
258
|
.slice(0, Number(args.options.limit))
|
|
145
259
|
.map((row) => ({
|
|
146
260
|
name: row.name,
|
|
@@ -151,16 +265,57 @@ export function createHoldersHeadless(
|
|
|
151
265
|
changePercent: row.changePercent ?? null,
|
|
152
266
|
percentHeld: resolveHolderOwnershipPercent(row, marketCap) ?? null,
|
|
153
267
|
reportDate: row.reportDate ?? null,
|
|
154
|
-
currency,
|
|
268
|
+
currency: valueCurrency,
|
|
269
|
+
shareBasis: row.shareBasis ?? null,
|
|
155
270
|
}));
|
|
271
|
+
const total = data.summary?.institutionsCount ?? null;
|
|
272
|
+
const changeReported = rows.some((row) => row.changeShares != null || row.changePercent != null);
|
|
273
|
+
const reportDate = sharedReportDate(rows);
|
|
274
|
+
const valueBasis = holderValueBasis(reportDate, data.valueBasis, valueCurrency);
|
|
275
|
+
const positionsBasis = rows.length > 0 ? nonUsHolderCaveat(data.exchange, currency) : null;
|
|
276
|
+
const shareBasisNote = holderShareBasisNote(data, rows);
|
|
277
|
+
const markedRows = rows.some((row) => holderShareBasisMarker(row));
|
|
278
|
+
// The title names the ticker and the closing line carries the as-of date.
|
|
279
|
+
const header = holdersHeaderLine({
|
|
280
|
+
name: data.name,
|
|
281
|
+
symbol: data.symbol && data.symbol !== symbol ? data.symbol : null,
|
|
282
|
+
exchange: data.exchange,
|
|
283
|
+
currency: valueCurrency,
|
|
284
|
+
listingCurrency: data.currency,
|
|
285
|
+
shown: rows.length,
|
|
286
|
+
reported: sorted.length,
|
|
287
|
+
total,
|
|
288
|
+
});
|
|
289
|
+
const basis = rows.length === 0 ? null : [
|
|
290
|
+
`Mkt value = ${valueBasis}.`,
|
|
291
|
+
changeReported ? "" : `Change vs prior quarter: not reported by this source; see fn 13F ${symbol}`,
|
|
292
|
+
].filter(Boolean).join(" ");
|
|
156
293
|
return {
|
|
294
|
+
// A change column that is empty on every row says nothing; the line above explains it once.
|
|
295
|
+
columns: HOLDER_COLUMNS
|
|
296
|
+
.filter((column) => changeReported || !CHANGE_COLUMN_KEYS.has(column.key))
|
|
297
|
+
.filter((column) => markedRows || column.key !== BASIS_COLUMN_KEY)
|
|
298
|
+
.map((column) => column.key === "value" ? { ...column, header: moneyColumnHeader(column.header, valueCurrency) } : column),
|
|
157
299
|
rows,
|
|
158
300
|
metadata: {
|
|
159
301
|
symbol: data.symbol || symbol,
|
|
160
302
|
name: data.name ?? null,
|
|
303
|
+
exchange: data.exchange ?? null,
|
|
161
304
|
currency,
|
|
305
|
+
valueCurrency,
|
|
306
|
+
...(data.isDepositaryReceipt != null ? { isDepositaryReceipt: data.isDepositaryReceipt } : {}),
|
|
307
|
+
...(data.shareBasis ? { shareBasis: data.shareBasis } : {}),
|
|
308
|
+
...(data.adrRatio != null ? { adrRatio: data.adrRatio } : {}),
|
|
162
309
|
asOf: data.asOf ?? null,
|
|
163
310
|
summary: data.summary ?? null,
|
|
311
|
+
shown: rows.length,
|
|
312
|
+
reported: sorted.length,
|
|
313
|
+
total,
|
|
314
|
+
truncated: rows.length < (total ?? sorted.length),
|
|
315
|
+
valueBasis,
|
|
316
|
+
changeReported,
|
|
317
|
+
positionsBasis,
|
|
318
|
+
notices: [header, basis, positionsBasis, shareBasisNote].filter((line): line is string => !!line),
|
|
164
319
|
},
|
|
165
320
|
};
|
|
166
321
|
},
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { PluginModule } from "../plugin-module";
|
|
2
2
|
import { createTickerSurfacePaneTemplate } from "../shared/ticker-surface";
|
|
3
|
+
import { beneficialOwnersCache } from "./beneficial-client";
|
|
3
4
|
import { holdersHeadless } from "./headless";
|
|
4
5
|
import { HoldersView } from "./pane";
|
|
5
6
|
|
|
6
|
-
|
|
7
7
|
export const holdersModule: PluginModule = {
|
|
8
8
|
setup(ctx) {
|
|
9
|
+
beneficialOwnersCache.attach(ctx.persistence);
|
|
9
10
|
ctx.registerTickerResearchTab({
|
|
10
11
|
id: "holders",
|
|
11
12
|
name: "Holders",
|
|
@@ -14,6 +15,9 @@ export const holdersModule: PluginModule = {
|
|
|
14
15
|
instruments: ["equity"],
|
|
15
16
|
});
|
|
16
17
|
},
|
|
18
|
+
dispose() {
|
|
19
|
+
beneficialOwnersCache.reset();
|
|
20
|
+
},
|
|
17
21
|
|
|
18
22
|
panes: [
|
|
19
23
|
{
|
|
@@ -35,8 +39,11 @@ export const holdersModule: PluginModule = {
|
|
|
35
39
|
id: "holders-pane",
|
|
36
40
|
paneId: "holders",
|
|
37
41
|
label: "Holders",
|
|
38
|
-
description: "Institutional holders
|
|
39
|
-
keywords: [
|
|
42
|
+
description: "Institutional holders from 13F filings, and 13D/13G beneficial owners: activist and passive stakes over 5% of the class.",
|
|
43
|
+
keywords: [
|
|
44
|
+
"holders", "ownership", "institutional", "owners", "hds",
|
|
45
|
+
"13d", "13g", "13d/g", "schedule 13d", "schedule 13g", "beneficial owners", "beneficial ownership", "activist", "activists",
|
|
46
|
+
],
|
|
40
47
|
shortcut: "HDS",
|
|
41
48
|
}),
|
|
42
49
|
headless: holdersHeadless,
|