@luxalgo/vela 0.6.1 → 0.6.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.
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
@@ -141,6 +141,20 @@ interface DataProvider {
141
141
  subscribe?(ticker: string, timeframe: string, onBar: (bar: OHLCV) => void, opts?: {
142
142
  session?: string;
143
143
  }): Unsubscribe;
144
+ /**
145
+ * Resolved market-calendar windows over `[range.from, range.to)`: ascending epoch-ms
146
+ * `[start, end)` pairs of OPEN market time, holidays and DST already applied by the
147
+ * source — the single market-time truth for session-anchored consumers (market-status
148
+ * badges, session profiles), which must never recompute a holiday themselves.
149
+ * `range.session` selects the window set (`'regular'` default; `'extended'` = the
150
+ * full tape). Absent ⇒ the venue offers no calendar (continuous markets) and
151
+ * consumers fall back to their own anchoring (e.g. UTC days).
152
+ */
153
+ getCalendar?(ticker: string, range: {
154
+ from: number;
155
+ to: number;
156
+ session?: string;
157
+ }): Promise<ReadonlyArray<readonly [number, number]>>;
144
158
  /** Apply runtime config (e.g. API keys). Absent ⇒ no configuration needed. */
145
159
  configure?(config: unknown): void;
146
160
  /**
@@ -141,6 +141,20 @@ interface DataProvider {
141
141
  subscribe?(ticker: string, timeframe: string, onBar: (bar: OHLCV) => void, opts?: {
142
142
  session?: string;
143
143
  }): Unsubscribe;
144
+ /**
145
+ * Resolved market-calendar windows over `[range.from, range.to)`: ascending epoch-ms
146
+ * `[start, end)` pairs of OPEN market time, holidays and DST already applied by the
147
+ * source — the single market-time truth for session-anchored consumers (market-status
148
+ * badges, session profiles), which must never recompute a holiday themselves.
149
+ * `range.session` selects the window set (`'regular'` default; `'extended'` = the
150
+ * full tape). Absent ⇒ the venue offers no calendar (continuous markets) and
151
+ * consumers fall back to their own anchoring (e.g. UTC days).
152
+ */
153
+ getCalendar?(ticker: string, range: {
154
+ from: number;
155
+ to: number;
156
+ session?: string;
157
+ }): Promise<ReadonlyArray<readonly [number, number]>>;
144
158
  /** Apply runtime config (e.g. API keys). Absent ⇒ no configuration needed. */
145
159
  configure?(config: unknown): void;
146
160
  /**