@luxalgo/vela 0.8.0 → 0.8.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 (49) hide show
  1. package/NOTICE +1 -1
  2. package/README.md +16 -8
  3. package/dist/{DataProvider-BrlxntPN.d.cts → DataProvider-COGDs9Xg.d.cts} +1 -1
  4. package/dist/{DataProvider-DwFIoV4r.d.ts → DataProvider-DpOWZD8F.d.ts} +1 -1
  5. package/dist/{chunk-KA77UTRF.js → chunk-27UTYE7T.js} +25 -2
  6. package/dist/{chunk-EZ5FWVLA.js → chunk-DPAA3SRT.js} +94 -13
  7. package/dist/{chunk-BZQM2XO7.js → chunk-HKNO24GD.js} +13 -1
  8. package/dist/{chunk-2IAETM2I.js → chunk-NLDTVFOI.js} +79 -6
  9. package/dist/{chunk-E3GU6AUI.js → chunk-R2JMNIHY.js} +68 -23
  10. package/dist/{chunk-QBPUT5SU.js → chunk-T3DZIR5Y.js} +211 -54
  11. package/dist/{contributions-tjNExo1o.d.ts → contributions-Cgm9RJYP.d.cts} +38 -11
  12. package/dist/{contributions-CtlptxR8.d.cts → contributions-bWgwyiVi.d.ts} +38 -11
  13. package/dist/index.cjs +317 -62
  14. package/dist/index.d.cts +8 -8
  15. package/dist/index.d.ts +8 -8
  16. package/dist/index.js +4 -4
  17. package/dist/{options-BnEPUuVV.d.ts → options-NAUHiQEC.d.cts} +3 -3
  18. package/dist/{options-BnEPUuVV.d.cts → options-NAUHiQEC.d.ts} +3 -3
  19. package/dist/{plugin-BWxJRKzS.d.cts → plugin-CjjzZX2F.d.cts} +4 -4
  20. package/dist/{plugin-e2WUEtiI.d.ts → plugin-CqxWoDKS.d.ts} +4 -4
  21. package/dist/plugin.cjs +20 -6
  22. package/dist/plugin.d.cts +5 -5
  23. package/dist/plugin.d.ts +5 -5
  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/{side-panel-HF0IAzwf.d.cts → side-panel-wMNfgyZb.d.cts} +13 -0
  32. package/dist/{side-panel-HF0IAzwf.d.ts → side-panel-wMNfgyZb.d.ts} +13 -0
  33. package/dist/{statusline-model-zKXtGIjj.d.ts → statusline-model-Dih6FGWP.d.ts} +3 -3
  34. package/dist/{statusline-model-DFY7tuHj.d.cts → statusline-model-Dpfpq54A.d.cts} +3 -3
  35. package/dist/ui.cjs +115 -5
  36. package/dist/ui.d.cts +28 -2
  37. package/dist/ui.d.ts +28 -2
  38. package/dist/ui.js +3 -3
  39. package/dist/vela.global.js +317 -62
  40. package/dist/vela.global.min.js +61 -68
  41. package/dist/widget.cjs +476 -85
  42. package/dist/widget.d.cts +20 -10
  43. package/dist/widget.d.ts +20 -10
  44. package/dist/widget.js +7 -7
  45. package/dist/workspace.cjs +476 -85
  46. package/dist/workspace.d.cts +6 -6
  47. package/dist/workspace.d.ts +6 -6
  48. package/dist/workspace.js +6 -6
  49. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
- import { x as Millis, ao as InputSchema, am as IndicatorMeta, P as PriceStyle, O as OHLCV, I as InputValue, l as IndicatorModel, k as MoveTarget, aH as PaneAxis, aW as SeriesSpec, ak as Fill, H as Background, aM as PriceLine, a7 as DrawingLine, a3 as DrawingBox, a6 as DrawingLabel, ab as DrawingPolyline, a8 as DrawingLinefill, ag as DrawingTable, h as IndicatorStatus, a as VisibleRange, c as VelaTheme, S as SerializedDrawing, z as DrawingTypeKey, y as SnapMode, a9 as DrawingMode, u as MarkClickEvent, e as IChartRenderer, R as RendererCapabilities, o as LegendActionView, p as LegendCalloutView, U as Unsubscribe, C as CrosshairEvent, r as ClickEvent, A as AxisLongPressEvent, v as DataWindowReadout, n as SymbolPickerFn, W as WallClock, bc as PaneInfo, aj as DrawingsOption, ad as DrawingSeriesGateway, D as Drawing, s as TimelineMark, t as MarkGroup, b as VelaOptions, F as AddIndicatorOptions, aG as MarketSwitch, E as MarketSnapshot, V as VisibleRangePreset, T as ThemeName } from './options-BnEPUuVV.js';
2
- import { S as SymbolInfo, B as BarRange, M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, b as ProviderCapabilities } from './DataProvider-DwFIoV4r.js';
1
+ import { x as Millis, ao as InputSchema, am as IndicatorMeta, P as PriceStyle, O as OHLCV, I as InputValue, l as IndicatorModel, k as MoveTarget, aH as PaneAxis, aW as SeriesSpec, ak as Fill, H as Background, aM as PriceLine, a7 as DrawingLine, a3 as DrawingBox, a6 as DrawingLabel, ab as DrawingPolyline, a8 as DrawingLinefill, ag as DrawingTable, h as IndicatorStatus, a as VisibleRange, c as VelaTheme, S as SerializedDrawing, z as DrawingTypeKey, y as SnapMode, a9 as DrawingMode, u as MarkClickEvent, e as IChartRenderer, R as RendererCapabilities, o as LegendActionView, p as LegendCalloutView, U as Unsubscribe, C as CrosshairEvent, r as ClickEvent, A as AxisLongPressEvent, v as DataWindowReadout, n as SymbolPickerFn, W as WallClock, bc as PaneInfo, aj as DrawingsOption, ad as DrawingSeriesGateway, D as Drawing, s as TimelineMark, t as MarkGroup, b as VelaOptions, F as AddIndicatorOptions, aG as MarketSwitch, E as MarketSnapshot, V as VisibleRangePreset, T as ThemeName } from './options-NAUHiQEC.cjs';
2
+ import { S as SymbolInfo, B as BarRange, M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, b as ProviderCapabilities } from './DataProvider-COGDs9Xg.cjs';
3
3
 
4
4
  /**
5
5
  * A strategy's broker state at ONE bar — the flat summary a host reads while a script
@@ -292,6 +292,13 @@ interface IndicatorEventMap extends Record<string, unknown> {
292
292
  time: number;
293
293
  };
294
294
  }
295
+ /** How a {@link IndicatorHandle.updateCode} call ended. Never a rejection. */
296
+ interface CodeUpdateResult {
297
+ /** The new code is the one running (or, hidden, the one that will run when shown). */
298
+ ok: boolean;
299
+ /** Why the update did not land — the previous code is running again. Null on success. */
300
+ error: Error | null;
301
+ }
295
302
  /**
296
303
  * What `chart.addIndicator(...)` returns to the developer. The handle is usable
297
304
  * synchronously; data renders when execution resolves (see `on('ready')`).
@@ -331,13 +338,23 @@ interface IndicatorHandle {
331
338
  * Replace the script and re-run it **in place** — same `id`, same legend row, same
332
339
  * pane placement, same handle; the seam for a host editor's "run my edit" and for a
333
340
  * library's "update to the new version". The new source is prepared first: only once
334
- * it compiles is the running script stopped and the new one started, so a broken edit
335
- * leaves the current indicator computing and painting and reports through `error`.
336
- * Input and prop values survive where the new script still declares their key;
337
- * anything else takes the new declaration default. No-op for a native indicator and
338
- * for an unchanged source.
341
+ * it compiles is the running script stopped and the new one started. Until the new
342
+ * code's first run has landed, a failure — at compile time or at run time — puts the
343
+ * previous code back, with its input and prop values, and reports through `error`; the
344
+ * visuals on the chart are never dropped in between.
345
+ *
346
+ * An edited input or prop value survives where the new script still declares its key;
347
+ * a value still at its old declared default takes the NEW default, and anything else
348
+ * takes the new declaration default — all before the first run, so the new code
349
+ * computes once, with its final values.
350
+ *
351
+ * Resolves once the new code's first run has landed (`{ ok: true }`), or with
352
+ * `{ ok: false, error }` after a failure. A HIDDEN indicator resolves as soon as the
353
+ * source has compiled — it computes nothing until shown. An unchanged source resolves
354
+ * at once; a call superseded by a later one resolves with that later call's outcome.
355
+ * Never rejects; a native indicator resolves `ok: false`.
339
356
  */
340
- updateCode(source: string): void;
357
+ updateCode(source: string): Promise<CodeUpdateResult>;
341
358
  /**
342
359
  * Hide or show the indicator. Hiding **suspends** it — its visuals are dropped (the legend
343
360
  * row stays, marked hidden) and its computation stops (the engine session is torn down), so a
@@ -1965,6 +1982,11 @@ interface SidePanelHeader {
1965
1982
  /** Replace the header title (an empty string hides it). The topbar toggle keeps the
1966
1983
  * DECLARED `title` as its tooltip. */
1967
1984
  setTitle(title: string): void;
1985
+ /** Whether the panel covers every chart right now (see `maximizable`). */
1986
+ readonly maximized: boolean;
1987
+ /** Maximize the panel over the shell's charts, or restore it — what its header button
1988
+ * does. A no-op unless the descriptor is `maximizable`. Closing restores it too. */
1989
+ setMaximized(maximized: boolean): void;
1968
1990
  }
1969
1991
  /**
1970
1992
  * A contributed SIDE PANEL — a docked column in the shell's panel dock, alongside the object
@@ -1996,6 +2018,10 @@ interface SidePanelDescriptor {
1996
2018
  * column that shrinks the chart). For panels wide enough that a column would crush
1997
2019
  * the plot. The dock stays exclusive either way. */
1998
2020
  overlay?: boolean;
2021
+ /** A header button that maximizes the panel over every chart of the shell, and restores
2022
+ * it (default false). For panels that are sometimes the main work surface, like an
2023
+ * editor; the contribution can drive it too ({@link SidePanelHeader.setMaximized}). */
2024
+ maximizable?: boolean;
1999
2025
  mount(ctx: WidgetContext, body: HTMLElement, header: SidePanelHeader): SidePanelHandle | void;
2000
2026
  }
2001
2027
  /** One panel toggle, as the shell's chrome consumes it (data, never DOM). */
@@ -2042,8 +2068,9 @@ declare function widgetActions(target: WidgetActionTarget, ctx?: WidgetContext):
2042
2068
  interface LegendIndicatorInfo {
2043
2069
  id: string;
2044
2070
  title: string;
2045
- /** The script source the indicator was added with; undefined for a NATIVE
2046
- * (core-computed) indicator. The usual `when` gate for source-centric actions. */
2071
+ /** The script source the indicator runs NOW (read at click time, so an in-place code
2072
+ * update shows through); undefined for a NATIVE (core-computed) indicator. The usual
2073
+ * `when` gate for source-centric actions. */
2047
2074
  source?: string;
2048
2075
  }
2049
2076
  /**
@@ -2222,4 +2249,4 @@ declare function unregisterDefaultEngine(language: string): void;
2222
2249
  * language. The shell layers (widget, workspace cell) register exactly this result. */
2223
2250
  declare function resolveEngines(overrides?: Record<string, EngineFactory>): Record<string, EngineFactory>;
2224
2251
 
2225
- export { type SidePanelButton as $, type NativeIndicatorDescriptor as A, type BarsChangeReason as B, type CellStateContext as C, type DrawingsDocument as D, type ExternalIndicatorEntry as E, type FetchSeries as F, type NativeIndicatorInfo as G, type NativeIndicatorOutput as H, type IndicatorHandle as I, type PreparedScript as J, RendererControl as K, type LegendActionDescriptor as L, MarksControl as M, type NativeIndicator as N, OVERRIDABLE_TOPBAR_IDS as O, type ParsedSymbol as P, ReplayControl as Q, type ReplayState as R, type ScriptingEngine as S, type ReplayEndReason as T, type ReplayStartOptions as U, Vela as V, type WidgetContext as W, type RunIndicatorResult as X, type SceneInspection as Y, type ScriptRunCause as Z, type ScriptRunResult as _, type ReplayBounds as a, type SidePanelDescriptor as a0, type SidePanelHandle as a1, type SidePanelHeader as a2, type StatePersistenceHandler as a3, type StrategyFill as a4, type StrategyState as a5, type StrategyTrade as a6, type SymbolRankingHook as a7, TypedEventBus as a8, type VelaDeps as a9, unregisterNativeIndicator as aA, unregisterSidePanel as aB, unregisterStatePersistence as aC, unregisterWidgetAction as aD, unregisterWidgetAttachment as aE, widgetActions as aF, widgetAttachments as aG, DEFAULT_PANEL_ORDER as aH, type VisibleBarRange as aa, type WidgetActionDescriptor as ab, type WidgetActionTarget as ac, type WidgetAttachment as ad, getNativeIndicator as ae, legendActions as af, legendCallouts as ag, nativeIndicatorDescriptors as ah, nativeIndicatorTypes as ai, registerDefaultEngine as aj, registerLegendAction as ak, registerLegendCallout as al, registerNativeIndicator as am, registerSidePanel as an, registerStatePersistence as ao, registerSymbolRanking as ap, registerWidgetAction as aq, registerWidgetAttachment as ar, resolveEngines as as, sidePanels as at, statePersistenceHandlers as au, symbolRanking as av, topbarActionOverride as aw, unregisterDefaultEngine as ax, unregisterLegendAction as ay, unregisterLegendCallout as az, type VelaEventMap as b, type ScriptRun as c, type Resolved as d, type ReplayTick as e, DataControl as f, type ReplayTickSource as g, type ContextSelect as h, DrawingsControl as i, type EngineAlert as j, type EngineCapabilities as k, type EngineContextSnapshot as l, type EngineFactory as m, type EngineWarning as n, type ExecutionHandlers as o, type ExecutionMarket as p, type ExecutionRequest as q, type ExecutionSession as r, type IndicatorEventMap as s, type IndicatorSummary as t, type LegendCalloutContent as u, type LegendCalloutDescriptor as v, type LegendCalloutItem as w, type LegendCalloutSpec as x, type LegendIndicatorInfo as y, type NativeIndicatorContext as z };
2252
+ export { type ScriptRunResult as $, type NativeIndicatorContext as A, type BarsChangeReason as B, type CellStateContext as C, type DrawingsDocument as D, type ExternalIndicatorEntry as E, type FetchSeries as F, type NativeIndicatorDescriptor as G, type NativeIndicatorInfo as H, type IndicatorHandle as I, type NativeIndicatorOutput as J, type PreparedScript as K, type LegendActionDescriptor as L, MarksControl as M, type NativeIndicator as N, OVERRIDABLE_TOPBAR_IDS as O, type ParsedSymbol as P, RendererControl as Q, type ReplayState as R, type ScriptingEngine as S, ReplayControl as T, type ReplayEndReason as U, Vela as V, type WidgetContext as W, type ReplayStartOptions as X, type RunIndicatorResult as Y, type SceneInspection as Z, type ScriptRunCause as _, type ReplayBounds as a, type SidePanelButton as a0, type SidePanelDescriptor as a1, type SidePanelHandle as a2, type SidePanelHeader as a3, type StatePersistenceHandler as a4, type StrategyFill as a5, type StrategyState as a6, type StrategyTrade as a7, type SymbolRankingHook as a8, TypedEventBus as a9, unregisterLegendCallout as aA, unregisterNativeIndicator as aB, unregisterSidePanel as aC, unregisterStatePersistence as aD, unregisterWidgetAction as aE, unregisterWidgetAttachment as aF, widgetActions as aG, widgetAttachments as aH, DEFAULT_PANEL_ORDER as aI, type VelaDeps as aa, type VisibleBarRange as ab, type WidgetActionDescriptor as ac, type WidgetActionTarget as ad, type WidgetAttachment as ae, getNativeIndicator as af, legendActions as ag, legendCallouts as ah, nativeIndicatorDescriptors as ai, nativeIndicatorTypes as aj, registerDefaultEngine as ak, registerLegendAction as al, registerLegendCallout as am, registerNativeIndicator as an, registerSidePanel as ao, registerStatePersistence as ap, registerSymbolRanking as aq, registerWidgetAction as ar, registerWidgetAttachment as as, resolveEngines as at, sidePanels as au, statePersistenceHandlers as av, symbolRanking as aw, topbarActionOverride as ax, unregisterDefaultEngine as ay, unregisterLegendAction as az, type VelaEventMap as b, type ScriptRun as c, type Resolved as d, type ReplayTick as e, DataControl as f, type ReplayTickSource as g, type CodeUpdateResult as h, type ContextSelect as i, DrawingsControl as j, type EngineAlert as k, type EngineCapabilities as l, type EngineContextSnapshot as m, type EngineFactory as n, type EngineWarning as o, type ExecutionHandlers as p, type ExecutionMarket as q, type ExecutionRequest as r, type ExecutionSession as s, type IndicatorEventMap as t, type IndicatorSummary as u, type LegendCalloutContent as v, type LegendCalloutDescriptor as w, type LegendCalloutItem as x, type LegendCalloutSpec as y, type LegendIndicatorInfo as z };
@@ -1,5 +1,5 @@
1
- import { x as Millis, ao as InputSchema, am as IndicatorMeta, P as PriceStyle, O as OHLCV, I as InputValue, l as IndicatorModel, k as MoveTarget, aH as PaneAxis, aW as SeriesSpec, ak as Fill, H as Background, aM as PriceLine, a7 as DrawingLine, a3 as DrawingBox, a6 as DrawingLabel, ab as DrawingPolyline, a8 as DrawingLinefill, ag as DrawingTable, h as IndicatorStatus, a as VisibleRange, c as VelaTheme, S as SerializedDrawing, z as DrawingTypeKey, y as SnapMode, a9 as DrawingMode, u as MarkClickEvent, e as IChartRenderer, R as RendererCapabilities, o as LegendActionView, p as LegendCalloutView, U as Unsubscribe, C as CrosshairEvent, r as ClickEvent, A as AxisLongPressEvent, v as DataWindowReadout, n as SymbolPickerFn, W as WallClock, bc as PaneInfo, aj as DrawingsOption, ad as DrawingSeriesGateway, D as Drawing, s as TimelineMark, t as MarkGroup, b as VelaOptions, F as AddIndicatorOptions, aG as MarketSwitch, E as MarketSnapshot, V as VisibleRangePreset, T as ThemeName } from './options-BnEPUuVV.cjs';
2
- import { S as SymbolInfo, B as BarRange, M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, b as ProviderCapabilities } from './DataProvider-BrlxntPN.cjs';
1
+ import { x as Millis, ao as InputSchema, am as IndicatorMeta, P as PriceStyle, O as OHLCV, I as InputValue, l as IndicatorModel, k as MoveTarget, aH as PaneAxis, aW as SeriesSpec, ak as Fill, H as Background, aM as PriceLine, a7 as DrawingLine, a3 as DrawingBox, a6 as DrawingLabel, ab as DrawingPolyline, a8 as DrawingLinefill, ag as DrawingTable, h as IndicatorStatus, a as VisibleRange, c as VelaTheme, S as SerializedDrawing, z as DrawingTypeKey, y as SnapMode, a9 as DrawingMode, u as MarkClickEvent, e as IChartRenderer, R as RendererCapabilities, o as LegendActionView, p as LegendCalloutView, U as Unsubscribe, C as CrosshairEvent, r as ClickEvent, A as AxisLongPressEvent, v as DataWindowReadout, n as SymbolPickerFn, W as WallClock, bc as PaneInfo, aj as DrawingsOption, ad as DrawingSeriesGateway, D as Drawing, s as TimelineMark, t as MarkGroup, b as VelaOptions, F as AddIndicatorOptions, aG as MarketSwitch, E as MarketSnapshot, V as VisibleRangePreset, T as ThemeName } from './options-NAUHiQEC.js';
2
+ import { S as SymbolInfo, B as BarRange, M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, b as ProviderCapabilities } from './DataProvider-DpOWZD8F.js';
3
3
 
4
4
  /**
5
5
  * A strategy's broker state at ONE bar — the flat summary a host reads while a script
@@ -292,6 +292,13 @@ interface IndicatorEventMap extends Record<string, unknown> {
292
292
  time: number;
293
293
  };
294
294
  }
295
+ /** How a {@link IndicatorHandle.updateCode} call ended. Never a rejection. */
296
+ interface CodeUpdateResult {
297
+ /** The new code is the one running (or, hidden, the one that will run when shown). */
298
+ ok: boolean;
299
+ /** Why the update did not land — the previous code is running again. Null on success. */
300
+ error: Error | null;
301
+ }
295
302
  /**
296
303
  * What `chart.addIndicator(...)` returns to the developer. The handle is usable
297
304
  * synchronously; data renders when execution resolves (see `on('ready')`).
@@ -331,13 +338,23 @@ interface IndicatorHandle {
331
338
  * Replace the script and re-run it **in place** — same `id`, same legend row, same
332
339
  * pane placement, same handle; the seam for a host editor's "run my edit" and for a
333
340
  * library's "update to the new version". The new source is prepared first: only once
334
- * it compiles is the running script stopped and the new one started, so a broken edit
335
- * leaves the current indicator computing and painting and reports through `error`.
336
- * Input and prop values survive where the new script still declares their key;
337
- * anything else takes the new declaration default. No-op for a native indicator and
338
- * for an unchanged source.
341
+ * it compiles is the running script stopped and the new one started. Until the new
342
+ * code's first run has landed, a failure — at compile time or at run time — puts the
343
+ * previous code back, with its input and prop values, and reports through `error`; the
344
+ * visuals on the chart are never dropped in between.
345
+ *
346
+ * An edited input or prop value survives where the new script still declares its key;
347
+ * a value still at its old declared default takes the NEW default, and anything else
348
+ * takes the new declaration default — all before the first run, so the new code
349
+ * computes once, with its final values.
350
+ *
351
+ * Resolves once the new code's first run has landed (`{ ok: true }`), or with
352
+ * `{ ok: false, error }` after a failure. A HIDDEN indicator resolves as soon as the
353
+ * source has compiled — it computes nothing until shown. An unchanged source resolves
354
+ * at once; a call superseded by a later one resolves with that later call's outcome.
355
+ * Never rejects; a native indicator resolves `ok: false`.
339
356
  */
340
- updateCode(source: string): void;
357
+ updateCode(source: string): Promise<CodeUpdateResult>;
341
358
  /**
342
359
  * Hide or show the indicator. Hiding **suspends** it — its visuals are dropped (the legend
343
360
  * row stays, marked hidden) and its computation stops (the engine session is torn down), so a
@@ -1965,6 +1982,11 @@ interface SidePanelHeader {
1965
1982
  /** Replace the header title (an empty string hides it). The topbar toggle keeps the
1966
1983
  * DECLARED `title` as its tooltip. */
1967
1984
  setTitle(title: string): void;
1985
+ /** Whether the panel covers every chart right now (see `maximizable`). */
1986
+ readonly maximized: boolean;
1987
+ /** Maximize the panel over the shell's charts, or restore it — what its header button
1988
+ * does. A no-op unless the descriptor is `maximizable`. Closing restores it too. */
1989
+ setMaximized(maximized: boolean): void;
1968
1990
  }
1969
1991
  /**
1970
1992
  * A contributed SIDE PANEL — a docked column in the shell's panel dock, alongside the object
@@ -1996,6 +2018,10 @@ interface SidePanelDescriptor {
1996
2018
  * column that shrinks the chart). For panels wide enough that a column would crush
1997
2019
  * the plot. The dock stays exclusive either way. */
1998
2020
  overlay?: boolean;
2021
+ /** A header button that maximizes the panel over every chart of the shell, and restores
2022
+ * it (default false). For panels that are sometimes the main work surface, like an
2023
+ * editor; the contribution can drive it too ({@link SidePanelHeader.setMaximized}). */
2024
+ maximizable?: boolean;
1999
2025
  mount(ctx: WidgetContext, body: HTMLElement, header: SidePanelHeader): SidePanelHandle | void;
2000
2026
  }
2001
2027
  /** One panel toggle, as the shell's chrome consumes it (data, never DOM). */
@@ -2042,8 +2068,9 @@ declare function widgetActions(target: WidgetActionTarget, ctx?: WidgetContext):
2042
2068
  interface LegendIndicatorInfo {
2043
2069
  id: string;
2044
2070
  title: string;
2045
- /** The script source the indicator was added with; undefined for a NATIVE
2046
- * (core-computed) indicator. The usual `when` gate for source-centric actions. */
2071
+ /** The script source the indicator runs NOW (read at click time, so an in-place code
2072
+ * update shows through); undefined for a NATIVE (core-computed) indicator. The usual
2073
+ * `when` gate for source-centric actions. */
2047
2074
  source?: string;
2048
2075
  }
2049
2076
  /**
@@ -2222,4 +2249,4 @@ declare function unregisterDefaultEngine(language: string): void;
2222
2249
  * language. The shell layers (widget, workspace cell) register exactly this result. */
2223
2250
  declare function resolveEngines(overrides?: Record<string, EngineFactory>): Record<string, EngineFactory>;
2224
2251
 
2225
- export { type SidePanelButton as $, type NativeIndicatorDescriptor as A, type BarsChangeReason as B, type CellStateContext as C, type DrawingsDocument as D, type ExternalIndicatorEntry as E, type FetchSeries as F, type NativeIndicatorInfo as G, type NativeIndicatorOutput as H, type IndicatorHandle as I, type PreparedScript as J, RendererControl as K, type LegendActionDescriptor as L, MarksControl as M, type NativeIndicator as N, OVERRIDABLE_TOPBAR_IDS as O, type ParsedSymbol as P, ReplayControl as Q, type ReplayState as R, type ScriptingEngine as S, type ReplayEndReason as T, type ReplayStartOptions as U, Vela as V, type WidgetContext as W, type RunIndicatorResult as X, type SceneInspection as Y, type ScriptRunCause as Z, type ScriptRunResult as _, type ReplayBounds as a, type SidePanelDescriptor as a0, type SidePanelHandle as a1, type SidePanelHeader as a2, type StatePersistenceHandler as a3, type StrategyFill as a4, type StrategyState as a5, type StrategyTrade as a6, type SymbolRankingHook as a7, TypedEventBus as a8, type VelaDeps as a9, unregisterNativeIndicator as aA, unregisterSidePanel as aB, unregisterStatePersistence as aC, unregisterWidgetAction as aD, unregisterWidgetAttachment as aE, widgetActions as aF, widgetAttachments as aG, DEFAULT_PANEL_ORDER as aH, type VisibleBarRange as aa, type WidgetActionDescriptor as ab, type WidgetActionTarget as ac, type WidgetAttachment as ad, getNativeIndicator as ae, legendActions as af, legendCallouts as ag, nativeIndicatorDescriptors as ah, nativeIndicatorTypes as ai, registerDefaultEngine as aj, registerLegendAction as ak, registerLegendCallout as al, registerNativeIndicator as am, registerSidePanel as an, registerStatePersistence as ao, registerSymbolRanking as ap, registerWidgetAction as aq, registerWidgetAttachment as ar, resolveEngines as as, sidePanels as at, statePersistenceHandlers as au, symbolRanking as av, topbarActionOverride as aw, unregisterDefaultEngine as ax, unregisterLegendAction as ay, unregisterLegendCallout as az, type VelaEventMap as b, type ScriptRun as c, type Resolved as d, type ReplayTick as e, DataControl as f, type ReplayTickSource as g, type ContextSelect as h, DrawingsControl as i, type EngineAlert as j, type EngineCapabilities as k, type EngineContextSnapshot as l, type EngineFactory as m, type EngineWarning as n, type ExecutionHandlers as o, type ExecutionMarket as p, type ExecutionRequest as q, type ExecutionSession as r, type IndicatorEventMap as s, type IndicatorSummary as t, type LegendCalloutContent as u, type LegendCalloutDescriptor as v, type LegendCalloutItem as w, type LegendCalloutSpec as x, type LegendIndicatorInfo as y, type NativeIndicatorContext as z };
2252
+ export { type ScriptRunResult as $, type NativeIndicatorContext as A, type BarsChangeReason as B, type CellStateContext as C, type DrawingsDocument as D, type ExternalIndicatorEntry as E, type FetchSeries as F, type NativeIndicatorDescriptor as G, type NativeIndicatorInfo as H, type IndicatorHandle as I, type NativeIndicatorOutput as J, type PreparedScript as K, type LegendActionDescriptor as L, MarksControl as M, type NativeIndicator as N, OVERRIDABLE_TOPBAR_IDS as O, type ParsedSymbol as P, RendererControl as Q, type ReplayState as R, type ScriptingEngine as S, ReplayControl as T, type ReplayEndReason as U, Vela as V, type WidgetContext as W, type ReplayStartOptions as X, type RunIndicatorResult as Y, type SceneInspection as Z, type ScriptRunCause as _, type ReplayBounds as a, type SidePanelButton as a0, type SidePanelDescriptor as a1, type SidePanelHandle as a2, type SidePanelHeader as a3, type StatePersistenceHandler as a4, type StrategyFill as a5, type StrategyState as a6, type StrategyTrade as a7, type SymbolRankingHook as a8, TypedEventBus as a9, unregisterLegendCallout as aA, unregisterNativeIndicator as aB, unregisterSidePanel as aC, unregisterStatePersistence as aD, unregisterWidgetAction as aE, unregisterWidgetAttachment as aF, widgetActions as aG, widgetAttachments as aH, DEFAULT_PANEL_ORDER as aI, type VelaDeps as aa, type VisibleBarRange as ab, type WidgetActionDescriptor as ac, type WidgetActionTarget as ad, type WidgetAttachment as ae, getNativeIndicator as af, legendActions as ag, legendCallouts as ah, nativeIndicatorDescriptors as ai, nativeIndicatorTypes as aj, registerDefaultEngine as ak, registerLegendAction as al, registerLegendCallout as am, registerNativeIndicator as an, registerSidePanel as ao, registerStatePersistence as ap, registerSymbolRanking as aq, registerWidgetAction as ar, registerWidgetAttachment as as, resolveEngines as at, sidePanels as au, statePersistenceHandlers as av, symbolRanking as aw, topbarActionOverride as ax, unregisterDefaultEngine as ay, unregisterLegendAction as az, type VelaEventMap as b, type ScriptRun as c, type Resolved as d, type ReplayTick as e, DataControl as f, type ReplayTickSource as g, type CodeUpdateResult as h, type ContextSelect as i, DrawingsControl as j, type EngineAlert as k, type EngineCapabilities as l, type EngineContextSnapshot as m, type EngineFactory as n, type EngineWarning as o, type ExecutionHandlers as p, type ExecutionMarket as q, type ExecutionRequest as r, type ExecutionSession as s, type IndicatorEventMap as t, type IndicatorSummary as u, type LegendCalloutContent as v, type LegendCalloutDescriptor as w, type LegendCalloutItem as x, type LegendCalloutSpec as y, type LegendIndicatorInfo as z };