@luxalgo/vela 0.6.11 → 0.6.13

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 (41) hide show
  1. package/README.md +110 -46
  2. package/dist/{DataProvider-BBf-jc6W.d.ts → DataProvider-DhzstpQb.d.ts} +1 -1
  3. package/dist/{DataProvider-p0TEyhlX.d.cts → DataProvider-DlMtrwqM.d.cts} +1 -1
  4. package/dist/{chunk-MTLJKZDZ.js → chunk-F4M24ANM.js} +122 -1
  5. package/dist/{chunk-IO3NYSQV.js → chunk-G52XAKZY.js} +184 -25
  6. package/dist/{chunk-73PEA4MU.js → chunk-JKGA36ZM.js} +635 -49
  7. package/dist/{contributions-Bbe2R-mQ.d.ts → contributions-37nni40G.d.ts} +6 -4
  8. package/dist/{contributions-CO01zWve.d.cts → contributions-lPojhTxI.d.cts} +6 -4
  9. package/dist/index.cjs +744 -37
  10. package/dist/index.d.cts +6 -6
  11. package/dist/index.d.ts +6 -6
  12. package/dist/index.js +2 -2
  13. package/dist/{options-yp7sA96q.d.cts → options-CYS5Wmlx.d.cts} +71 -2
  14. package/dist/{options-yp7sA96q.d.ts → options-CYS5Wmlx.d.ts} +71 -2
  15. package/dist/{plugin-CkkH8QnX.d.cts → plugin-Cwikpz1m.d.cts} +10 -3
  16. package/dist/{plugin-DwxjM3Ni.d.ts → plugin-DHyaoMjW.d.ts} +10 -3
  17. package/dist/plugin.cjs +110 -0
  18. package/dist/plugin.d.cts +4 -4
  19. package/dist/plugin.d.ts +4 -4
  20. package/dist/plugin.js +1 -1
  21. package/dist/providers/binance.d.cts +2 -2
  22. package/dist/providers/binance.d.ts +2 -2
  23. package/dist/providers/coinbase.d.cts +2 -2
  24. package/dist/providers/coinbase.d.ts +2 -2
  25. package/dist/providers/hyperliquid.d.cts +2 -2
  26. package/dist/providers/hyperliquid.d.ts +2 -2
  27. package/dist/{statusline-CHPDuKNp.d.ts → statusline-model-CiJm-riV.d.cts} +7 -85
  28. package/dist/{statusline-DTHZUFqK.d.cts → statusline-model-D-q_OOx9.d.ts} +7 -85
  29. package/dist/ui.d.cts +1 -1
  30. package/dist/ui.d.ts +1 -1
  31. package/dist/vela.global.js +744 -37
  32. package/dist/vela.global.min.js +52 -52
  33. package/dist/widget.cjs +927 -61
  34. package/dist/widget.d.cts +118 -7
  35. package/dist/widget.d.ts +118 -7
  36. package/dist/widget.js +4 -4
  37. package/dist/workspace.cjs +927 -61
  38. package/dist/workspace.d.cts +5 -5
  39. package/dist/workspace.d.ts +5 -5
  40. package/dist/workspace.js +3 -3
  41. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-yp7sA96q.cjs';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-p0TEyhlX.cjs';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-CYS5Wmlx.cjs';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DlMtrwqM.cjs';
3
3
 
4
4
  /**
5
5
  * Binance market-data provider, built from scratch on the public REST + WebSocket
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-yp7sA96q.js';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-BBf-jc6W.js';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-CYS5Wmlx.js';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DhzstpQb.js';
3
3
 
4
4
  /**
5
5
  * Binance market-data provider, built from scratch on the public REST + WebSocket
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-yp7sA96q.cjs';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-p0TEyhlX.cjs';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-CYS5Wmlx.cjs';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DlMtrwqM.cjs';
3
3
 
4
4
  /**
5
5
  * Coinbase market-data provider, built from scratch on the public Exchange REST + WebSocket APIs
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-yp7sA96q.js';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-BBf-jc6W.js';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-CYS5Wmlx.js';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DhzstpQb.js';
3
3
 
4
4
  /**
5
5
  * Coinbase market-data provider, built from scratch on the public Exchange REST + WebSocket APIs
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-yp7sA96q.cjs';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-p0TEyhlX.cjs';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-CYS5Wmlx.cjs';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DlMtrwqM.cjs';
3
3
 
4
4
  /**
5
5
  * Hyperliquid market-data provider, built from scratch on the public info API — no
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-yp7sA96q.js';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-BBf-jc6W.js';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-CYS5Wmlx.js';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DhzstpQb.js';
3
3
 
4
4
  /**
5
5
  * Hyperliquid market-data provider, built from scratch on the public info API — no
@@ -1,6 +1,6 @@
1
- import { D as DataProvider } from './DataProvider-BBf-jc6W.js';
2
- import { S as ScriptingEngine, V as Vela } from './contributions-Bbe2R-mQ.js';
3
- import { V as VisibleRangePreset } from './options-yp7sA96q.js';
1
+ import { D as DataProvider } from './DataProvider-DlMtrwqM.cjs';
2
+ import { S as ScriptingEngine, V as Vela } from './contributions-lPojhTxI.cjs';
3
+ import { V as VisibleRangePreset } from './options-CYS5Wmlx.cjs';
4
4
 
5
5
  /** The linkable dimensions. `crosshair` mirrors the pointer time onto same-group
6
6
  * cells as GHOST crosshairs (renderers without the optional `setExternalCrosshair`
@@ -372,86 +372,8 @@ declare class Bottombar {
372
372
  private tick;
373
373
  }
374
374
 
375
- /** How the status line reads a bar out: the four O/H/L/C values (bar-shaped styles),
376
- * or the single plotted value the close — for one-line styles (line/area/baseline). */
377
- type StatuslineReadout = 'ohlc' | 'value';
378
- /** The market session states the status badge can wear. Crypto venues trade
379
- * continuously and stay 'open'; the full vocabulary is ready for providers that
380
- * carry a session model (equities RTH/ETH, exchange holidays). */
381
- type MarketStatus = 'open' | 'pre' | 'post' | 'closed' | 'holiday';
382
- /** The status line's toggleable segments (the settings dialog's Status line tab). */
383
- type StatuslinePart = 'name' | 'market' | 'ohlc' | 'change';
384
- declare class Statusline {
385
- private readonly host;
386
- /** The avatar's icon URL for a raw symbol — the shell routes it to the owning
387
- * provider's `resolveSymbolIcon`. Absent ⇒ the initials badge. */
388
- private readonly iconFor?;
389
- readonly el: HTMLElement;
390
- private readonly ohlcEl;
391
- private readonly changeEl;
392
- private readonly symbolEl;
393
- private readonly marketEl;
394
- /** The badge itself — a kit callout bubble (the same element as {@link marketEl}). */
395
- private readonly marketBubble;
396
- private marketTip;
397
- private avatarEl;
398
- private metaEl;
399
- private readonly parts;
400
- private lastBar;
401
- private hoverBar;
402
- private unsubs;
403
- /** Up/down ink for the OHLC + change values — the ACTIVE price style's configured
404
- * colors (candle bodies, bar ticks, the line color, …); null falls back to the theme
405
- * tokens. `isUp` overrides the close-vs-open direction rule where the style paints by
406
- * something else (baseline: position against the baseline price). */
407
- private upColor;
408
- private downColor;
409
- private isUp;
410
- /** 'ohlc' for bar-shaped styles; 'value' (the single plotted close) for line styles. */
411
- private readout;
412
- /** Fit mode (multi-chart cells): one row, overflowing segments hidden — see {@link setFitMode}. */
413
- private fitMode;
414
- private fitRO;
415
- constructor(host: HTMLElement, symbol: string,
416
- /** The avatar's icon URL for a raw symbol — the shell routes it to the owning
417
- * provider's `resolveSymbolIcon`. Absent ⇒ the initials badge. */
418
- iconFor?: ((symbol: string) => string | undefined) | undefined);
419
- setSymbol(symbol: string): void;
420
- /**
421
- * Multi-chart cells: keep the line on ONE row whatever the cell width — never wrap.
422
- * Segments that don't fit are hidden outright rather than clipped mid-glyph, least
423
- * important first: OHLC, then the bar change, the venue/timeframe meta, and the
424
- * market badge; the logo + ticker always stay. Re-fits live on host resizes.
425
- */
426
- setFitMode(on: boolean): void;
427
- /** Project the parts config onto the segments (the baseline fit() prunes from). */
428
- private syncParts;
429
- /** Hide overflowing segments until the row fits its max-width (fit mode only). */
430
- private fit;
431
- /** Shape + color the value readout after the active price style: its own up/down
432
- * colors (candle bodies, bar ticks, the line color, …), the direction rule that
433
- * picks between them (`isUp` replaces close-vs-open where the style paints by
434
- * something else — baseline by position), and whether the readout is the four
435
- * O/H/L/C values or the single plotted value (one-line styles). Null colors fall
436
- * back to the theme's up/down tokens. See {@link statuslineInkOf}, which derives
437
- * all of it from the live renderer. */
438
- setDirectionColors(up: string | null, down: string | null, isUp?: ((bar: {
439
- open: number;
440
- close: number;
441
- }) => boolean) | null, readout?: StatuslineReadout): void;
442
- /** Show/hide one part (the settings dialog's Status line tab drives these). */
443
- /** The "· BINANCE · 1h" segment after the symbol — venue first, then resolution. */
444
- setMeta(timeframe: string, provider: string): void;
445
- /** Dress the market badge for a session state: its icon, tinted circle, and the
446
- * hover label. Callers with no session model leave the constructor's 'open'. */
447
- setMarketStatus(status: MarketStatus): void;
448
- setPartVisible(part: StatuslinePart, visible: boolean): void;
449
- partVisible(part: StatuslinePart): boolean;
450
- /** (Re)bind to a chart instance — called after every widget rebuild. */
451
- onChart(chart: Vela): void;
452
- destroy(): void;
453
- private detach;
454
- private render;
455
- }
375
+ /** The status line's toggleable segments the settings dialog's Status line tab and
376
+ * the status line's own right-click menu drive these. */
377
+ type StatuslinePart = 'logo' | 'name' | 'market' | 'ohlc' | 'change';
456
378
 
457
- export { Bottombar as B, type CellState as C, type IndicatorLoader as I, type PanelsState as P, type ResolvedIndicator as R, type SyncSetting as S, type TrackSizes as T, type VelaStorage as V, WidgetHistory as W, type StatuslinePart as a, type RangePreset as b, type VelaShellOptions as c, type SyncOptions as d, type SyncKind as e, type WorkspaceState as f, type ChartState as g, decodeState as h, encodeState as i, type TopbarComposition as j, type BottombarOptions as k, type IndicatorManifest as l, type IndicatorManifestEntry as m, RANGE_PRESETS as n, type ResolvedTopbarComposition as o, Statusline as p, TOPBAR_BUILTIN_IDS as q, TOPBAR_DEFAULT_LEFT as r, sanitizeState as s, TOPBAR_DEFAULT_RIGHT as t, type WidgetStorage as u, localStorageAdapter as v, pinnedTopbarActionIds as w, resolveIndicators as x, resolveTopbarComposition as y, topbarHas as z };
379
+ export { Bottombar as B, type CellState as C, type IndicatorLoader as I, type PanelsState as P, type ResolvedIndicator as R, type SyncSetting as S, type TrackSizes as T, type VelaStorage as V, WidgetHistory as W, type StatuslinePart as a, type RangePreset as b, type VelaShellOptions as c, type SyncOptions as d, type SyncKind as e, type WorkspaceState as f, type ChartState as g, decodeState as h, encodeState as i, type TopbarComposition as j, type BottombarOptions as k, type IndicatorManifest as l, type IndicatorManifestEntry as m, RANGE_PRESETS as n, type ResolvedTopbarComposition as o, TOPBAR_BUILTIN_IDS as p, TOPBAR_DEFAULT_LEFT as q, TOPBAR_DEFAULT_RIGHT as r, sanitizeState as s, type WidgetStorage as t, localStorageAdapter as u, pinnedTopbarActionIds as v, resolveIndicators as w, resolveTopbarComposition as x, topbarHas as y };
@@ -1,6 +1,6 @@
1
- import { D as DataProvider } from './DataProvider-p0TEyhlX.cjs';
2
- import { S as ScriptingEngine, V as Vela } from './contributions-CO01zWve.cjs';
3
- import { V as VisibleRangePreset } from './options-yp7sA96q.cjs';
1
+ import { D as DataProvider } from './DataProvider-DhzstpQb.js';
2
+ import { S as ScriptingEngine, V as Vela } from './contributions-37nni40G.js';
3
+ import { V as VisibleRangePreset } from './options-CYS5Wmlx.js';
4
4
 
5
5
  /** The linkable dimensions. `crosshair` mirrors the pointer time onto same-group
6
6
  * cells as GHOST crosshairs (renderers without the optional `setExternalCrosshair`
@@ -372,86 +372,8 @@ declare class Bottombar {
372
372
  private tick;
373
373
  }
374
374
 
375
- /** How the status line reads a bar out: the four O/H/L/C values (bar-shaped styles),
376
- * or the single plotted value the close — for one-line styles (line/area/baseline). */
377
- type StatuslineReadout = 'ohlc' | 'value';
378
- /** The market session states the status badge can wear. Crypto venues trade
379
- * continuously and stay 'open'; the full vocabulary is ready for providers that
380
- * carry a session model (equities RTH/ETH, exchange holidays). */
381
- type MarketStatus = 'open' | 'pre' | 'post' | 'closed' | 'holiday';
382
- /** The status line's toggleable segments (the settings dialog's Status line tab). */
383
- type StatuslinePart = 'name' | 'market' | 'ohlc' | 'change';
384
- declare class Statusline {
385
- private readonly host;
386
- /** The avatar's icon URL for a raw symbol — the shell routes it to the owning
387
- * provider's `resolveSymbolIcon`. Absent ⇒ the initials badge. */
388
- private readonly iconFor?;
389
- readonly el: HTMLElement;
390
- private readonly ohlcEl;
391
- private readonly changeEl;
392
- private readonly symbolEl;
393
- private readonly marketEl;
394
- /** The badge itself — a kit callout bubble (the same element as {@link marketEl}). */
395
- private readonly marketBubble;
396
- private marketTip;
397
- private avatarEl;
398
- private metaEl;
399
- private readonly parts;
400
- private lastBar;
401
- private hoverBar;
402
- private unsubs;
403
- /** Up/down ink for the OHLC + change values — the ACTIVE price style's configured
404
- * colors (candle bodies, bar ticks, the line color, …); null falls back to the theme
405
- * tokens. `isUp` overrides the close-vs-open direction rule where the style paints by
406
- * something else (baseline: position against the baseline price). */
407
- private upColor;
408
- private downColor;
409
- private isUp;
410
- /** 'ohlc' for bar-shaped styles; 'value' (the single plotted close) for line styles. */
411
- private readout;
412
- /** Fit mode (multi-chart cells): one row, overflowing segments hidden — see {@link setFitMode}. */
413
- private fitMode;
414
- private fitRO;
415
- constructor(host: HTMLElement, symbol: string,
416
- /** The avatar's icon URL for a raw symbol — the shell routes it to the owning
417
- * provider's `resolveSymbolIcon`. Absent ⇒ the initials badge. */
418
- iconFor?: ((symbol: string) => string | undefined) | undefined);
419
- setSymbol(symbol: string): void;
420
- /**
421
- * Multi-chart cells: keep the line on ONE row whatever the cell width — never wrap.
422
- * Segments that don't fit are hidden outright rather than clipped mid-glyph, least
423
- * important first: OHLC, then the bar change, the venue/timeframe meta, and the
424
- * market badge; the logo + ticker always stay. Re-fits live on host resizes.
425
- */
426
- setFitMode(on: boolean): void;
427
- /** Project the parts config onto the segments (the baseline fit() prunes from). */
428
- private syncParts;
429
- /** Hide overflowing segments until the row fits its max-width (fit mode only). */
430
- private fit;
431
- /** Shape + color the value readout after the active price style: its own up/down
432
- * colors (candle bodies, bar ticks, the line color, …), the direction rule that
433
- * picks between them (`isUp` replaces close-vs-open where the style paints by
434
- * something else — baseline by position), and whether the readout is the four
435
- * O/H/L/C values or the single plotted value (one-line styles). Null colors fall
436
- * back to the theme's up/down tokens. See {@link statuslineInkOf}, which derives
437
- * all of it from the live renderer. */
438
- setDirectionColors(up: string | null, down: string | null, isUp?: ((bar: {
439
- open: number;
440
- close: number;
441
- }) => boolean) | null, readout?: StatuslineReadout): void;
442
- /** Show/hide one part (the settings dialog's Status line tab drives these). */
443
- /** The "· BINANCE · 1h" segment after the symbol — venue first, then resolution. */
444
- setMeta(timeframe: string, provider: string): void;
445
- /** Dress the market badge for a session state: its icon, tinted circle, and the
446
- * hover label. Callers with no session model leave the constructor's 'open'. */
447
- setMarketStatus(status: MarketStatus): void;
448
- setPartVisible(part: StatuslinePart, visible: boolean): void;
449
- partVisible(part: StatuslinePart): boolean;
450
- /** (Re)bind to a chart instance — called after every widget rebuild. */
451
- onChart(chart: Vela): void;
452
- destroy(): void;
453
- private detach;
454
- private render;
455
- }
375
+ /** The status line's toggleable segments the settings dialog's Status line tab and
376
+ * the status line's own right-click menu drive these. */
377
+ type StatuslinePart = 'logo' | 'name' | 'market' | 'ohlc' | 'change';
456
378
 
457
- export { Bottombar as B, type CellState as C, type IndicatorLoader as I, type PanelsState as P, type ResolvedIndicator as R, type SyncSetting as S, type TrackSizes as T, type VelaStorage as V, WidgetHistory as W, type StatuslinePart as a, type RangePreset as b, type VelaShellOptions as c, type SyncOptions as d, type SyncKind as e, type WorkspaceState as f, type ChartState as g, decodeState as h, encodeState as i, type TopbarComposition as j, type BottombarOptions as k, type IndicatorManifest as l, type IndicatorManifestEntry as m, RANGE_PRESETS as n, type ResolvedTopbarComposition as o, Statusline as p, TOPBAR_BUILTIN_IDS as q, TOPBAR_DEFAULT_LEFT as r, sanitizeState as s, TOPBAR_DEFAULT_RIGHT as t, type WidgetStorage as u, localStorageAdapter as v, pinnedTopbarActionIds as w, resolveIndicators as x, resolveTopbarComposition as y, topbarHas as z };
379
+ export { Bottombar as B, type CellState as C, type IndicatorLoader as I, type PanelsState as P, type ResolvedIndicator as R, type SyncSetting as S, type TrackSizes as T, type VelaStorage as V, WidgetHistory as W, type StatuslinePart as a, type RangePreset as b, type VelaShellOptions as c, type SyncOptions as d, type SyncKind as e, type WorkspaceState as f, type ChartState as g, decodeState as h, encodeState as i, type TopbarComposition as j, type BottombarOptions as k, type IndicatorManifest as l, type IndicatorManifestEntry as m, RANGE_PRESETS as n, type ResolvedTopbarComposition as o, TOPBAR_BUILTIN_IDS as p, TOPBAR_DEFAULT_LEFT as q, TOPBAR_DEFAULT_RIGHT as r, sanitizeState as s, type WidgetStorage as t, localStorageAdapter as u, pinnedTopbarActionIds as v, resolveIndicators as w, resolveTopbarComposition as x, topbarHas as y };
package/dist/ui.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as VelaTheme } from './options-yp7sA96q.cjs';
1
+ import { c as VelaTheme } from './options-CYS5Wmlx.cjs';
2
2
  import { MachineSchema, Service, Machine } from '@zag-js/core';
3
3
  export { a as KeyBindingDescriptor, K as KeymapManager, b as KeymapOptions, R as ResolvedBinding } from './keymap-CGOz5F5f.cjs';
4
4
  import * as tooltip from '@zag-js/tooltip';
package/dist/ui.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as VelaTheme } from './options-yp7sA96q.js';
1
+ import { c as VelaTheme } from './options-CYS5Wmlx.js';
2
2
  import { MachineSchema, Service, Machine } from '@zag-js/core';
3
3
  export { a as KeyBindingDescriptor, K as KeymapManager, b as KeymapOptions, R as ResolvedBinding } from './keymap-CGOz5F5f.js';
4
4
  import * as tooltip from '@zag-js/tooltip';