@funnest/charts-ui 0.6.4 → 0.6.5
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 +2 -0
- package/dist/index.js +4 -1
- package/dist/pane.d.ts +2 -0
- package/package.json +2 -2
package/dist/context.d.ts
CHANGED
|
@@ -73,6 +73,8 @@ export interface WidgetContext {
|
|
|
73
73
|
/** IANA zone used for the status-bar clock (KST for Korean users by default). */
|
|
74
74
|
displayTimezone: string;
|
|
75
75
|
showLogo: boolean;
|
|
76
|
+
/** Ctrl/⌘+K opens symbol search (off when the page uses the shortcut for its own search). */
|
|
77
|
+
searchHotkey: boolean;
|
|
76
78
|
drawingToolbar: boolean;
|
|
77
79
|
/** Show the Funnest logo badge on the chart. */
|
|
78
80
|
attribution: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1823,7 +1823,7 @@ function SymbolSearch({ ctx }) {
|
|
|
1823
1823
|
t3.close
|
|
1824
1824
|
] }),
|
|
1825
1825
|
/* @__PURE__ */ a3("span", { class: "fnc-spacer" }),
|
|
1826
|
-
/* @__PURE__ */ a3("span", { children: [
|
|
1826
|
+
ctx.searchHotkey && /* @__PURE__ */ a3("span", { children: [
|
|
1827
1827
|
/* @__PURE__ */ a3("kbd", { class: "fnc-kbd", children: [
|
|
1828
1828
|
/Mac|iPhone|iPad/.test(navigator.platform) ? "\u2318" : "Ctrl",
|
|
1829
1829
|
" + K"
|
|
@@ -3921,6 +3921,7 @@ function createPane(shell, config) {
|
|
|
3921
3921
|
searchCategories: config.searchCategories,
|
|
3922
3922
|
displayTimezone: config.displayTimezone,
|
|
3923
3923
|
showLogo: config.symbolLogo,
|
|
3924
|
+
searchHotkey: config.searchHotkey,
|
|
3924
3925
|
drawingToolbar: config.drawingToolbar,
|
|
3925
3926
|
attribution: config.attribution,
|
|
3926
3927
|
contextMenuItems: config.contextMenuItems,
|
|
@@ -4020,6 +4021,7 @@ function createTradingChart(container, options) {
|
|
|
4020
4021
|
intervalGroups,
|
|
4021
4022
|
searchCategories,
|
|
4022
4023
|
symbolLogo,
|
|
4024
|
+
searchHotkey,
|
|
4023
4025
|
drawingToolbar,
|
|
4024
4026
|
attribution,
|
|
4025
4027
|
contextMenuItems
|
|
@@ -4156,6 +4158,7 @@ function createMultiChart(container, options) {
|
|
|
4156
4158
|
intervalGroups,
|
|
4157
4159
|
searchCategories,
|
|
4158
4160
|
symbolLogo,
|
|
4161
|
+
searchHotkey,
|
|
4159
4162
|
drawingToolbar,
|
|
4160
4163
|
// One badge for the whole widget, not one per pane.
|
|
4161
4164
|
attribution: attribution && index === 0,
|
package/dist/pane.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export interface PaneConfig {
|
|
|
14
14
|
symbolLogo: boolean;
|
|
15
15
|
drawingToolbar: boolean;
|
|
16
16
|
attribution: boolean;
|
|
17
|
+
/** Ctrl/⌘+K opens this widget's symbol search (its footer shows the hint only then). */
|
|
18
|
+
searchHotkey: boolean;
|
|
17
19
|
contextMenuItems?: ContextMenuItems | undefined;
|
|
18
20
|
multi?: MultiControls | undefined;
|
|
19
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funnest/charts-ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5",
|
|
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.6.
|
|
45
|
+
"@funnest/charts": "0.6.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"preact": "^11.2.0"
|