@luxalgo/vela 0.6.1 → 0.6.2

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 (44) hide show
  1. package/dist/{DataProvider-BNKtYU5V.d.cts → DataProvider-CNmk84SH.d.cts} +14 -0
  2. package/dist/{DataProvider-gJjN_0eh.d.ts → DataProvider-DHX4x6-r.d.ts} +14 -0
  3. package/dist/{chunk-4MQEG67Z.js → chunk-7D6YIF34.js} +2135 -2452
  4. package/dist/{chunk-ZNL2X6U2.js → chunk-7Y7CJ7EN.js} +1 -1
  5. package/dist/{chunk-EMS6PO2T.js → chunk-PN5KWFZ4.js} +6 -1
  6. package/dist/chunk-QHZ7IXFL.js +2598 -0
  7. package/dist/chunk-TP56QRMK.js +503 -0
  8. package/dist/{chunk-6LZJRO2S.js → chunk-U5KCQHAC.js} +108 -5
  9. package/dist/{contributions-D64UA74H.d.cts → contributions-DDpv7hEL.d.cts} +5 -1
  10. package/dist/{contributions-lPAgo9Cu.d.ts → contributions-ciV6Neyd.d.ts} +5 -1
  11. package/dist/{history-CVoFDJ2D.d.ts → history-CFqZm5re.d.ts} +2 -2
  12. package/dist/{history-fSMXVLt1.d.cts → history-ChoT34nz.d.cts} +2 -2
  13. package/dist/index.cjs +3708 -2730
  14. package/dist/index.d.cts +4 -4
  15. package/dist/index.d.ts +4 -4
  16. package/dist/index.js +4 -4
  17. package/dist/{plugin-o5HJH46Z.d.ts → plugin-C97gUCVf.d.ts} +6 -2
  18. package/dist/{plugin-D5ni4WEJ.d.cts → plugin-CSb_sTiN.d.cts} +6 -2
  19. package/dist/plugin.d.cts +3 -3
  20. package/dist/plugin.d.ts +3 -3
  21. package/dist/plugin.js +2 -2
  22. package/dist/providers/binance.d.cts +1 -1
  23. package/dist/providers/binance.d.ts +1 -1
  24. package/dist/providers/coinbase.d.cts +1 -1
  25. package/dist/providers/coinbase.d.ts +1 -1
  26. package/dist/providers/hyperliquid.d.cts +1 -1
  27. package/dist/providers/hyperliquid.d.ts +1 -1
  28. package/dist/ui.cjs +1001 -247
  29. package/dist/ui.d.cts +257 -10
  30. package/dist/ui.d.ts +257 -10
  31. package/dist/ui.js +3 -3
  32. package/dist/vela.global.js +12345 -3952
  33. package/dist/vela.global.min.js +479 -124
  34. package/dist/widget.cjs +3388 -2865
  35. package/dist/widget.d.cts +7 -5
  36. package/dist/widget.d.ts +7 -5
  37. package/dist/widget.js +13 -9
  38. package/dist/workspace.cjs +3051 -2528
  39. package/dist/workspace.d.cts +6 -4
  40. package/dist/workspace.d.ts +6 -4
  41. package/dist/workspace.js +11 -7
  42. package/package.json +1 -1
  43. package/dist/chunk-OGRQW3M6.js +0 -1328
  44. package/dist/chunk-QWIEKZRE.js +0 -1042
package/dist/widget.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- import { W as WidgetContext, V as Vela, y as SidePanelButton } from './contributions-D64UA74H.cjs';
2
- export { ah as DEFAULT_PANEL_ORDER, z as SidePanelDescriptor, A as SidePanelHandle, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a8 as sidePanels, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-D64UA74H.cjs';
1
+ import { W as WidgetContext, V as Vela, y as SidePanelButton } from './contributions-DDpv7hEL.cjs';
2
+ export { ah as DEFAULT_PANEL_ORDER, z as SidePanelDescriptor, A as SidePanelHandle, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a8 as sidePanels, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-DDpv7hEL.cjs';
3
3
  import { b as VelaOptions, d as MarketSession, r as DataWindowReadout } from './options-BqGeFHtp.cjs';
4
4
  import { K as KeymapManager } from './keymap-CGOz5F5f.cjs';
5
- import { W as WidgetHistory, b as VelaShellOptions, e as WorkspaceState, a as RangePreset, i as PersistedState, P as PanelsState } from './history-fSMXVLt1.cjs';
6
- export { B as Bottombar, j as BottombarOptions, C as CellState, f as ChartState, I as IndicatorLoader, k as IndicatorManifest, l as IndicatorManifestEntry, m as RANGE_PRESETS, R as ResolvedIndicator, V as VelaStorage, n as WidgetStorage, g as decodeState, h as encodeState, o as legacyWidgetState, p as loadPersisted, q as localStorageAdapter, r as parsePersisted, t as resolveIndicators, s as sanitizeState, u as savePersisted } from './history-fSMXVLt1.cjs';
7
- import { a as SymbolDescriptor } from './DataProvider-BNKtYU5V.cjs';
5
+ import { W as WidgetHistory, b as VelaShellOptions, e as WorkspaceState, a as RangePreset, i as PersistedState, P as PanelsState } from './history-ChoT34nz.cjs';
6
+ export { B as Bottombar, j as BottombarOptions, C as CellState, f as ChartState, I as IndicatorLoader, k as IndicatorManifest, l as IndicatorManifestEntry, m as RANGE_PRESETS, R as ResolvedIndicator, V as VelaStorage, n as WidgetStorage, g as decodeState, h as encodeState, o as legacyWidgetState, p as loadPersisted, q as localStorageAdapter, r as parsePersisted, t as resolveIndicators, s as sanitizeState, u as savePersisted } from './history-ChoT34nz.cjs';
7
+ import { a as SymbolDescriptor } from './DataProvider-CNmk84SH.cjs';
8
8
  import { d as SidePanel } from './side-panel-CT9ZwIGz.cjs';
9
9
  export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.cjs';
10
10
 
@@ -21,6 +21,8 @@ declare class VelaWidget {
21
21
  private readonly chartHost;
22
22
  private readonly topbar;
23
23
  private readonly statusline;
24
+ /** Keeps the statusline's market badge on the symbol's real calendar (see {@link MarketStatusTracker}). */
25
+ private readonly marketStatus;
24
26
  private readonly watermark;
25
27
  private readonly bottombar;
26
28
  private readonly objectTree;
package/dist/widget.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { W as WidgetContext, V as Vela, y as SidePanelButton } from './contributions-lPAgo9Cu.js';
2
- export { ah as DEFAULT_PANEL_ORDER, z as SidePanelDescriptor, A as SidePanelHandle, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a8 as sidePanels, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-lPAgo9Cu.js';
1
+ import { W as WidgetContext, V as Vela, y as SidePanelButton } from './contributions-ciV6Neyd.js';
2
+ export { ah as DEFAULT_PANEL_ORDER, z as SidePanelDescriptor, A as SidePanelHandle, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a8 as sidePanels, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-ciV6Neyd.js';
3
3
  import { b as VelaOptions, d as MarketSession, r as DataWindowReadout } from './options-BqGeFHtp.js';
4
4
  import { K as KeymapManager } from './keymap-CGOz5F5f.js';
5
- import { W as WidgetHistory, b as VelaShellOptions, e as WorkspaceState, a as RangePreset, i as PersistedState, P as PanelsState } from './history-CVoFDJ2D.js';
6
- export { B as Bottombar, j as BottombarOptions, C as CellState, f as ChartState, I as IndicatorLoader, k as IndicatorManifest, l as IndicatorManifestEntry, m as RANGE_PRESETS, R as ResolvedIndicator, V as VelaStorage, n as WidgetStorage, g as decodeState, h as encodeState, o as legacyWidgetState, p as loadPersisted, q as localStorageAdapter, r as parsePersisted, t as resolveIndicators, s as sanitizeState, u as savePersisted } from './history-CVoFDJ2D.js';
7
- import { a as SymbolDescriptor } from './DataProvider-gJjN_0eh.js';
5
+ import { W as WidgetHistory, b as VelaShellOptions, e as WorkspaceState, a as RangePreset, i as PersistedState, P as PanelsState } from './history-CFqZm5re.js';
6
+ export { B as Bottombar, j as BottombarOptions, C as CellState, f as ChartState, I as IndicatorLoader, k as IndicatorManifest, l as IndicatorManifestEntry, m as RANGE_PRESETS, R as ResolvedIndicator, V as VelaStorage, n as WidgetStorage, g as decodeState, h as encodeState, o as legacyWidgetState, p as loadPersisted, q as localStorageAdapter, r as parsePersisted, t as resolveIndicators, s as sanitizeState, u as savePersisted } from './history-CFqZm5re.js';
7
+ import { a as SymbolDescriptor } from './DataProvider-DHX4x6-r.js';
8
8
  import { d as SidePanel } from './side-panel-CT9ZwIGz.js';
9
9
  export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.js';
10
10
 
@@ -21,6 +21,8 @@ declare class VelaWidget {
21
21
  private readonly chartHost;
22
22
  private readonly topbar;
23
23
  private readonly statusline;
24
+ /** Keeps the statusline's market badge on the symbol's real calendar (see {@link MarketStatusTracker}). */
25
+ private readonly marketStatus;
24
26
  private readonly watermark;
25
27
  private readonly bottombar;
26
28
  private readonly objectTree;
package/dist/widget.js CHANGED
@@ -1,12 +1,12 @@
1
- import { Glider, WidgetHistory, localStorageAdapter, decodeState, prefixedSymbol, normalizeSession, SymbolPicker, IndicatorPicker, TimeframeQuick, Topbar, PanelDock, ObjectTree, DataWindow, ChartContextMenu, Toast, Watermark, Statusline, Bottombar, MobileBar, DrawingPill, LayoutModeController, ZOOM_IN, ZOOM_OUT, PAN_FAST, ShortcutsHelp, TimeframeDrawer, RANGE_PRESETS, DrawingsDrawer, MoreDrawer, priceStyleIcon, priceStyleLabel, TimezoneDrawer, PriceScaleDrawer, indicatorLedger, sanitizeState, legacyWidgetState, parsePersisted, statuslineInkOf, toolShortcutHints, resolveIndicators, encodeState } from './chunk-6LZJRO2S.js';
2
- export { Bottombar, ChartContextMenu, DataWindow, IndicatorPicker, ObjectTree, PanelDock, RANGE_PRESETS, ShortcutsHelp, Statusline, SymbolPicker, TimeframeQuick, Topbar, Watermark, dataWindowSections, decimalsFor, decodeState, encodeState, filterSymbols, fmtChange, fmtPrice, legacyWidgetState, loadPersisted, localStorageAdapter, parsePersisted, parseTimeframe, priceStyleLabel, resolveIndicators, sanitizeState, savePersisted, timeframeLabel, timeframeMs } from './chunk-6LZJRO2S.js';
3
- import { registerBuiltinChartTypes, resolveTheme, parseSymbol, buildToolbar, priceStyleIds, Vela, normalizeTimezone } from './chunk-4MQEG67Z.js';
4
- export { TIMEZONES, normalizeTimezone, tzButtonLabel, tzMenuLabel, tzOffset } from './chunk-4MQEG67Z.js';
5
- import { widgetActions, widgetAttachments, legendActionsProviderFor, resolveEngines } from './chunk-ZNL2X6U2.js';
6
- export { DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_ORDER, DEFAULT_PANEL_WIDTH, SidePanel, clampPanelWidth, registerSidePanel, registerWidgetAction, registerWidgetAttachment, sidePanels, unregisterSidePanel, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-ZNL2X6U2.js';
7
- import { KeymapManager, Menu, isEditableTarget } from './chunk-QWIEKZRE.js';
8
- import { ensureUIHost, applyPlotOverlayTokens } from './chunk-OGRQW3M6.js';
9
- import { injectStyles } from './chunk-EMS6PO2T.js';
1
+ import { Glider, WidgetHistory, localStorageAdapter, decodeState, prefixedSymbol, normalizeSession, SymbolPicker, IndicatorPicker, TimeframeQuick, Topbar, PanelDock, ObjectTree, DataWindow, ChartContextMenu, Toast, Watermark, Statusline, MarketStatusTracker, Bottombar, MobileBar, DrawingPill, LayoutModeController, ZOOM_IN, ZOOM_OUT, PAN_FAST, ShortcutsHelp, TimeframeDrawer, RANGE_PRESETS, DrawingsDrawer, MoreDrawer, priceStyleIcon, priceStyleLabel, TimezoneDrawer, PriceScaleDrawer, indicatorLedger, sanitizeState, legacyWidgetState, parsePersisted, statuslineInkOf, toolShortcutHints, resolveIndicators, encodeState } from './chunk-U5KCQHAC.js';
2
+ export { Bottombar, ChartContextMenu, DataWindow, IndicatorPicker, ObjectTree, PanelDock, RANGE_PRESETS, ShortcutsHelp, Statusline, SymbolPicker, TimeframeQuick, Topbar, Watermark, dataWindowSections, decimalsFor, decodeState, encodeState, filterSymbols, fmtChange, fmtPrice, legacyWidgetState, loadPersisted, localStorageAdapter, parsePersisted, parseTimeframe, priceStyleLabel, resolveIndicators, sanitizeState, savePersisted, timeframeLabel, timeframeMs } from './chunk-U5KCQHAC.js';
3
+ import { registerBuiltinChartTypes, resolveTheme, parseSymbol, buildToolbar, priceStyleIds, Vela, normalizeTimezone } from './chunk-7D6YIF34.js';
4
+ export { TIMEZONES, normalizeTimezone, tzButtonLabel, tzMenuLabel, tzOffset } from './chunk-7D6YIF34.js';
5
+ import { widgetActions, widgetAttachments, legendActionsProviderFor, resolveEngines } from './chunk-7Y7CJ7EN.js';
6
+ export { DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_ORDER, DEFAULT_PANEL_WIDTH, SidePanel, clampPanelWidth, registerSidePanel, registerWidgetAction, registerWidgetAttachment, sidePanels, unregisterSidePanel, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-7Y7CJ7EN.js';
7
+ import { KeymapManager, isEditableTarget } from './chunk-TP56QRMK.js';
8
+ import { ensureUIHost, Menu, applyPlotOverlayTokens } from './chunk-QHZ7IXFL.js';
9
+ import { injectStyles } from './chunk-PN5KWFZ4.js';
10
10
 
11
11
  // src/widget/url-state.ts
12
12
  var PARAMS = [
@@ -250,6 +250,7 @@ var VelaWidget = class {
250
250
  this.watermark?.setVisible(this.watermarkOn);
251
251
  this.statusline = opts.statusline !== false ? new Statusline(this.chartHost, this.symbol) : null;
252
252
  this.statusline?.setMeta(this.timeframe, parseSymbol(this.symbol).provider ?? "");
253
+ this.marketStatus = this.statusline ? new MarketStatusTracker((s) => this.statusline?.setMarketStatus(s)) : null;
253
254
  this.bottombar = opts.bottombar !== false ? new Bottombar(this.root, {
254
255
  timezone: this.timezone,
255
256
  onRange: (preset) => this.applyRange(preset),
@@ -831,6 +832,7 @@ var VelaWidget = class {
831
832
  this.symbolPicker.destroy();
832
833
  this.indicatorPicker?.destroy();
833
834
  this.tfQuick.destroy();
835
+ this.marketStatus?.stop();
834
836
  this.statusline?.destroy();
835
837
  this.watermark?.destroy();
836
838
  this.bottombar?.destroy();
@@ -889,6 +891,7 @@ var VelaWidget = class {
889
891
  if (this.inner !== chart) return;
890
892
  this.statusline?.setMeta(this.timeframe, this.providerLabel());
891
893
  this.refreshSessionToggle();
894
+ this.marketStatus?.track(chart.data, this.symbol);
892
895
  });
893
896
  if (this.layoutCtl !== void 0) chart.renderer.setLayoutMode(this.layoutCtl.current);
894
897
  this.objectTree.setSymbol(this.symbol);
@@ -966,6 +969,7 @@ var VelaWidget = class {
966
969
  this.objectTree.setSymbol(symbol);
967
970
  this.watermark?.update(symbol, this.timeframe);
968
971
  this.refreshSessionToggle();
972
+ this.marketStatus?.track(chart.data, symbol);
969
973
  }
970
974
  if (timeframe !== this.timeframe) this.syncTimeframeChrome(timeframe);
971
975
  });