@funnest/charts-ui 0.5.2 → 0.6.0

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.
package/dist/context.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Chart, ChartLayout, ChartType, Datafeed, Drawing, DrawingType, IndicatorConfig, Locale, Resolution, SymbolInfo } from '@funnest/charts';
1
+ import type { Chart, ChartLayout, ChartType, CompareInfo, Datafeed, Drawing, DrawingType, IndicatorConfig, Locale, ReplayStatus, Resolution, SymbolInfo } from '@funnest/charts';
2
2
  import type { LayoutId } from './layouts';
3
3
  import type { WidgetStorage } from './storage';
4
4
  import type { Store } from './store';
@@ -11,6 +11,8 @@ export interface UiState {
11
11
  atRealtime: boolean;
12
12
  fullscreen: boolean;
13
13
  searchOpen: boolean;
14
+ /** What a pick in the symbol search does: switch the symbol, or add it as a comparison. */
15
+ searchTarget: 'symbol' | 'compare';
14
16
  chartType: ChartType;
15
17
  drawingTool: DrawingType | null;
16
18
  selection: Drawing | null;
@@ -32,6 +34,10 @@ export interface UiState {
32
34
  favoriteIntervals: Resolution[];
33
35
  /** Desktop: the left drawing bar folded away (a small tab brings it back). */
34
36
  drawbarCollapsed: boolean;
37
+ canUndo: boolean;
38
+ canRedo: boolean;
39
+ compares: CompareInfo[];
40
+ replay: ReplayStatus;
35
41
  }
36
42
  export interface IntervalGroup {
37
43
  id: 'minutes' | 'hours' | 'days';
@@ -69,7 +75,7 @@ export interface WidgetContext {
69
75
  selectSymbol(symbol: string): void;
70
76
  selectResolution(resolution: Resolution): void;
71
77
  toggleFavoriteInterval(resolution: Resolution): void;
72
- setSearchOpen(open: boolean): void;
78
+ setSearchOpen(open: boolean, target?: 'symbol' | 'compare'): void;
73
79
  screenshot(): void;
74
80
  toggleFullscreen(): void;
75
81
  /** Present in the multi-chart widget: split layout and sync controls for the toolbar. */
package/dist/i18n.d.ts CHANGED
@@ -41,6 +41,27 @@ export declare const STRINGS: {
41
41
  settingLastPrice: string;
42
42
  settingVolume: string;
43
43
  settingNavButtons: string;
44
+ settingCountdown: string;
45
+ settingsScale: string;
46
+ scaleNormal: string;
47
+ scaleLog: string;
48
+ scalePercent: string;
49
+ undo: string;
50
+ redo: string;
51
+ compare: string;
52
+ compareSymbol: string;
53
+ removeCompare: string;
54
+ replay: string;
55
+ replayPick: string;
56
+ replayPlay: string;
57
+ replayPause: string;
58
+ replayStep: string;
59
+ replayExit: string;
60
+ replaySpeed: string;
61
+ replayRestart: string;
62
+ replayDone: string;
63
+ searchIndicators: string;
64
+ moreTools: string;
44
65
  settingGridH: string;
45
66
  settingGridV: string;
46
67
  resetDefaults: string;
@@ -146,6 +167,27 @@ export declare const STRINGS: {
146
167
  settingLastPrice: string;
147
168
  settingVolume: string;
148
169
  settingNavButtons: string;
170
+ settingCountdown: string;
171
+ settingsScale: string;
172
+ scaleNormal: string;
173
+ scaleLog: string;
174
+ scalePercent: string;
175
+ undo: string;
176
+ redo: string;
177
+ compare: string;
178
+ compareSymbol: string;
179
+ removeCompare: string;
180
+ replay: string;
181
+ replayPick: string;
182
+ replayPlay: string;
183
+ replayPause: string;
184
+ replayStep: string;
185
+ replayExit: string;
186
+ replaySpeed: string;
187
+ replayRestart: string;
188
+ replayDone: string;
189
+ searchIndicators: string;
190
+ moreTools: string;
149
191
  settingGridH: string;
150
192
  settingGridV: string;
151
193
  resetDefaults: string;
package/dist/icons.d.ts CHANGED
@@ -40,3 +40,17 @@ export declare const FunnestMark: () => import("preact").JSX.Element;
40
40
  export declare const LinkIcon: () => import("preact").JSX.Element;
41
41
  export declare const MaximizeIcon: () => import("preact").JSX.Element;
42
42
  export declare const RestoreIcon: () => import("preact").JSX.Element;
43
+ export declare const UndoIcon: () => import("preact").JSX.Element;
44
+ export declare const RedoIcon: () => import("preact").JSX.Element;
45
+ /** Two price lines diverging (compare symbols). */
46
+ export declare const CompareIcon: () => import("preact").JSX.Element;
47
+ export declare const ReplayIcon: () => import("preact").JSX.Element;
48
+ export declare const PlayIcon: () => import("preact").JSX.Element;
49
+ export declare const PauseIcon: () => import("preact").JSX.Element;
50
+ export declare const StepIcon: () => import("preact").JSX.Element;
51
+ /** Plugin tool icon: SVG markup from DrawingDefinition.icon (whole <svg> or just its children). */
52
+ export declare const SvgIcon: ({ markup }: {
53
+ markup: string;
54
+ }) => import("preact").JSX.Element;
55
+ /** Tiny corner triangle on drawing-bar buttons that hold more tools. */
56
+ export declare const CornerIcon: () => import("preact").JSX.Element;