@funnest/charts-ui 0.5.2 → 0.6.1
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/components/context-menu.d.ts +8 -0
- package/dist/context.d.ts +20 -2
- package/dist/i18n.d.ts +48 -0
- package/dist/icons.d.ts +12 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +974 -525
- package/dist/pane.d.ts +2 -1
- package/dist/shell.d.ts +4 -0
- package/dist/trading-chart.d.ts +6 -1
- package/package.json +2 -2
package/dist/pane.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsxImportSource preact */
|
|
2
2
|
import { type Chart, type ChartOptions, type ChartType, type Datafeed, type Resolution } from '@funnest/charts';
|
|
3
|
-
import type { IntervalGroup, MultiControls, SearchCategory, UiState, WidgetContext } from './context';
|
|
3
|
+
import type { ContextMenuItems, IntervalGroup, MultiControls, SearchCategory, UiState, WidgetContext } from './context';
|
|
4
4
|
import { type Shell } from './shell';
|
|
5
5
|
import { Store } from './store';
|
|
6
6
|
export interface PaneConfig {
|
|
@@ -14,6 +14,7 @@ export interface PaneConfig {
|
|
|
14
14
|
symbolLogo: boolean;
|
|
15
15
|
drawingToolbar: boolean;
|
|
16
16
|
attribution: boolean;
|
|
17
|
+
contextMenuItems?: ContextMenuItems | undefined;
|
|
17
18
|
multi?: MultiControls | undefined;
|
|
18
19
|
}
|
|
19
20
|
/**
|
package/dist/shell.d.ts
CHANGED
|
@@ -74,4 +74,8 @@ export declare function createShell(container: HTMLElement, options: ShellOption
|
|
|
74
74
|
export declare function bindWidgetKeys(shell: Shell, active: () => {
|
|
75
75
|
store: Store<UiState>;
|
|
76
76
|
canSearch: boolean;
|
|
77
|
+
chart: {
|
|
78
|
+
undo(): void;
|
|
79
|
+
redo(): void;
|
|
80
|
+
};
|
|
77
81
|
} | null, searchHotkey: boolean, extra?: (e: KeyboardEvent) => boolean): () => void;
|
package/dist/trading-chart.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsxImportSource preact */
|
|
2
2
|
import { type Chart, type ChartOptions, type ChartType, type Datafeed, type Locale, type ChartState, type Resolution, type ThemeTokens } from '@funnest/charts';
|
|
3
|
-
import type { IntervalGroup, SearchCategory } from './context';
|
|
3
|
+
import type { ContextMenuItems, IntervalGroup, SearchCategory } from './context';
|
|
4
4
|
import { type ColorScheme, type TradingChartSlots } from './shell';
|
|
5
5
|
export type { ColorScheme, TradingChartSlots } from './shell';
|
|
6
6
|
/** Interval menu: 분 | 시간 | 일. '12M' is shown as 1년. */
|
|
@@ -45,6 +45,11 @@ export interface TradingChartOptions extends Omit<ChartOptions, 'datafeed'> {
|
|
|
45
45
|
* `theme` overrides are applied on top of whichever base is active.
|
|
46
46
|
*/
|
|
47
47
|
colorScheme?: ColorScheme;
|
|
48
|
+
/**
|
|
49
|
+
* Extra rows for the chart's right-click menu (between undo/redo and the built-in actions),
|
|
50
|
+
* e.g. "이 가격에 알림 만들기". Called on every right-click with the price and time under the pointer.
|
|
51
|
+
*/
|
|
52
|
+
contextMenuItems?: ContextMenuItems;
|
|
48
53
|
}
|
|
49
54
|
export interface TradingChart {
|
|
50
55
|
/** The underlying engine, for anything the widget doesn't wrap. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funnest/charts-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Pro trading UI (toolbar, drawing tools, sheets) for Funnest Charts. Framework-agnostic.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chart",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"NOTICE"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@funnest/charts": "0.
|
|
45
|
+
"@funnest/charts": "0.6.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"preact": "^11.2.0"
|