@luxalgo/vela 0.5.0 → 0.5.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 (45) hide show
  1. package/dist/{DataProvider-Dzd-Erlk.d.ts → DataProvider-DTOEXKTI.d.ts} +1 -1
  2. package/dist/{DataProvider-DKNDHpNv.d.cts → DataProvider-gnzv-dgc.d.cts} +1 -1
  3. package/dist/{chunk-KM6LHB3Y.js → chunk-ATPU5CI6.js} +6 -1
  4. package/dist/{chunk-7UFX5ZIG.js → chunk-B5TIKQJ5.js} +65 -7
  5. package/dist/{chunk-GYD2THPV.js → chunk-LJLZR44Y.js} +9 -2
  6. package/dist/{chunk-RHIDOUFL.js → chunk-P556H6EA.js} +329 -10
  7. package/dist/{chunk-KCCZNKH7.js → chunk-RRFGWZNJ.js} +1915 -367
  8. package/dist/{chunk-OVQKKXLZ.js → chunk-Y7TK4ZWK.js} +1810 -153
  9. package/dist/{contributions-o1GRKPI_.d.cts → contributions-Ci_i3IN2.d.cts} +77 -31
  10. package/dist/{contributions-hX3EUyjG.d.ts → contributions-b6AVrqqG.d.ts} +77 -31
  11. package/dist/{history-LJkz4-sS.d.cts → history-Cf1lVsap.d.cts} +22 -5
  12. package/dist/{history-Dzxz-MQj.d.ts → history-Ci3M0xLV.d.ts} +22 -5
  13. package/dist/index.cjs +2010 -397
  14. package/dist/index.d.cts +83 -25
  15. package/dist/index.d.ts +83 -25
  16. package/dist/index.js +4 -4
  17. package/dist/{options-Q-576hIi.d.cts → options-XTBpbx0s.d.cts} +61 -1
  18. package/dist/{options-Q-576hIi.d.ts → options-XTBpbx0s.d.ts} +61 -1
  19. package/dist/{plugin-aGUD1epn.d.ts → plugin-CnNd7cuF.d.ts} +305 -8
  20. package/dist/{plugin-D94muTV-.d.cts → plugin-DfH4Y-Om.d.cts} +305 -8
  21. package/dist/plugin.cjs +58 -7
  22. package/dist/plugin.d.cts +4 -4
  23. package/dist/plugin.d.ts +4 -4
  24. package/dist/plugin.js +2 -2
  25. package/dist/providers/binance.d.cts +2 -2
  26. package/dist/providers/binance.d.ts +2 -2
  27. package/dist/providers/coinbase.d.cts +2 -2
  28. package/dist/providers/coinbase.d.ts +2 -2
  29. package/dist/providers/hyperliquid.d.cts +2 -2
  30. package/dist/providers/hyperliquid.d.ts +2 -2
  31. package/dist/ui.cjs +342 -9
  32. package/dist/ui.d.cts +64 -2
  33. package/dist/ui.d.ts +64 -2
  34. package/dist/ui.js +3 -3
  35. package/dist/vela.global.js +2010 -397
  36. package/dist/vela.global.min.js +115 -34
  37. package/dist/widget.cjs +5987 -2242
  38. package/dist/widget.d.cts +89 -17
  39. package/dist/widget.d.ts +89 -17
  40. package/dist/widget.js +169 -18
  41. package/dist/workspace.cjs +5627 -1587
  42. package/dist/workspace.d.cts +106 -12
  43. package/dist/workspace.d.ts +106 -12
  44. package/dist/workspace.js +494 -52
  45. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { V as VisibleRangePreset } from './options-Q-576hIi.js';
2
- import { D as DataProvider } from './DataProvider-Dzd-Erlk.js';
3
- import { S as ScriptingEngine, V as Vela } from './contributions-hX3EUyjG.js';
1
+ import { V as VisibleRangePreset } from './options-XTBpbx0s.js';
2
+ import { D as DataProvider } from './DataProvider-DTOEXKTI.js';
3
+ import { S as ScriptingEngine, V as Vela } from './contributions-b6AVrqqG.js';
4
4
 
5
5
  interface RangePreset {
6
6
  /** Button label. */
@@ -85,8 +85,12 @@ declare function resolveIndicators(config: string | IndicatorManifest | Indicato
85
85
 
86
86
  /** The linkable dimensions. `crosshair` mirrors the pointer time onto same-group
87
87
  * cells as GHOST crosshairs (renderers without the optional `setExternalCrosshair`
88
- * seam simply never display one). */
89
- type SyncKind = 'viewport' | 'symbol' | 'timeframe' | 'crosshair';
88
+ * seam simply never display one). `drawings` copies each NEWLY CREATED drawing onto
89
+ * same-group cells and keeps the set linked: edits and removals of any member
90
+ * follow. Link membership is session-scoped and survives a toggle-off (re-enabling
91
+ * resumes edit/delete for drawings paired earlier; drawings created while off stay
92
+ * independent). After a reload, every drawing is unpaired again. */
93
+ type SyncKind = 'viewport' | 'symbol' | 'timeframe' | 'crosshair' | 'drawings';
90
94
  /**
91
95
  * One link's configuration: `false`/absent = off; `true` = ALL cells linked (one
92
96
  * implicit group); a record maps cell id → group name, and only cells sharing a group
@@ -98,6 +102,7 @@ interface SyncOptions {
98
102
  symbol?: SyncSetting;
99
103
  timeframe?: SyncSetting;
100
104
  crosshair?: SyncSetting;
105
+ drawings?: SyncSetting;
101
106
  }
102
107
  /** Splitter track weights along each grid axis. */
103
108
  interface TrackSizes {
@@ -129,6 +134,8 @@ interface CellState {
129
134
  watermark?: boolean;
130
135
  /** Indicator titles (the in-chart legend rows) visibility — a per-chart display pref. */
131
136
  indicatorTitles?: boolean;
137
+ /** Plot values beside the legend titles visibility — a per-chart display pref. */
138
+ indicatorValues?: boolean;
132
139
  /** The renderer's cosmetic config document (`renderer.getConfig()`). */
133
140
  rendererConfig?: unknown;
134
141
  /** The user-drawings document (`drawings.toJSON()`). */
@@ -247,6 +254,16 @@ interface VelaShellOptions {
247
254
  statusline?: boolean;
248
255
  watermark?: boolean;
249
256
  bottombar?: boolean;
257
+ /** The built-in indicator picker's entry points — the topbar button, the mobile-bar
258
+ * item, and the `/` shortcut. `false` removes them, for hosts that replace the
259
+ * picker with their own indicator UI (e.g. a contributed topbar action opening a
260
+ * custom dialog). The `indicators` manifest still resolves and auto-adds. */
261
+ indicatorPicker?: boolean;
262
+ /** Chrome size class. `'auto'` (default) follows the CONTAINER width plus a
263
+ * coarse-pointer heuristic; `'mobile'` / `'desktop'` pin it. Mobile swaps the
264
+ * topbar + desktop bottombar for one touch-first bottom bar, presents pickers
265
+ * fullscreen and menus as bottom drawers, and enables the touch chart gestures. */
266
+ layoutMode?: 'auto' | 'mobile' | 'desktop';
250
267
  /** Focus the chart when the shell mounts so keyboard shortcuts work from the first
251
268
  * keystroke — no initial click needed. Default false: an embedded shell must never
252
269
  * steal the page's focus from the host's own controls. */