@funnest/charts-react 0.11.10 → 0.11.12
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/NOTICE +26 -5
- package/README.md +1 -1
- package/dist/fn-chart.d.ts +1 -1
- package/dist/fn-multi-chart.d.ts +2 -2
- package/dist/index.js +8 -0
- package/package.json +4 -4
package/NOTICE
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
Funnest Charts
|
|
2
2
|
Copyright 2026 Funnest
|
|
3
3
|
|
|
4
|
-
This product includes software developed by the Funnest Charts project
|
|
4
|
+
This product includes software developed by the Funnest Charts project
|
|
5
|
+
(https://charts.funnest.xyz/).
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
Attribution notice
|
|
8
|
+
------------------
|
|
9
|
+
This NOTICE file is part of the attribution notices that Section 4(d) of the Apache
|
|
10
|
+
License 2.0 asks every redistribution and Derivative Work to keep. Any product, website or
|
|
11
|
+
application that includes Funnest Charts (any @funnest/charts package, or code taken from
|
|
12
|
+
this repository), in source or object form, and that is made available to users must
|
|
13
|
+
display the following attribution, with a link to https://charts.funnest.xyz/, on or next
|
|
14
|
+
to every chart it shows:
|
|
15
|
+
|
|
16
|
+
Charts by Funnest (https://charts.funnest.xyz/)
|
|
17
|
+
|
|
18
|
+
The trading chart of @funnest/charts-ui does this for you: its logo badge at the bottom
|
|
19
|
+
left of the chart (the `attribution` option, on by default) shows the Funnest logo and
|
|
20
|
+
links to https://charts.funnest.xyz/. Keep it on. If you turn it off, or use only the
|
|
21
|
+
engine (@funnest/charts) or the SVG charts (@funnest/charts-viz), show the attribution and
|
|
22
|
+
the link yourself, on or next to each chart.
|
|
23
|
+
|
|
24
|
+
Trademarks
|
|
25
|
+
----------
|
|
26
|
+
"Funnest", "Funnest Charts" and the Funnest logos (the brand/ directory and the logo marks
|
|
27
|
+
in the code) are trademarks of Funnest. The Apache License 2.0 covers the code only and
|
|
28
|
+
grants no rights to these names or logos (Section 6), except this one: you may show the
|
|
29
|
+
logo badge as shipped, unchanged, to give the attribution above. Forks and
|
|
30
|
+
redistributions must not use the names or logos to identify their own products.
|
package/README.md
CHANGED
|
@@ -32,4 +32,4 @@ Components: `LineChart`, `AreaChart`, `BarChart`, `PercentageBarChart`, `Cartesi
|
|
|
32
32
|
|
|
33
33
|
- Docs: https://charts.funnest.xyz/docs/
|
|
34
34
|
- GitHub: https://github.com/funnest-xyz/funnest-charts ([한국어](https://github.com/funnest-xyz/funnest-charts/blob/main/README.ko.md))
|
|
35
|
-
- License: Apache-2.0
|
|
35
|
+
- License: Apache-2.0, with an attribution notice ([NOTICE](NOTICE)): show "Charts by Funnest" and a link to https://charts.funnest.xyz/ on or next to every chart
|
package/dist/fn-chart.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface FnChartProps extends TradingChartOptions {
|
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* React wrapper around `createTradingChart`. Creation-time options are read on mount;
|
|
17
|
-
* `symbol`, `resolution`, `locale` and `theme` stay in sync with props; a new `datafeed`
|
|
17
|
+
* `symbol`, `resolution`, `locale`, `displayTimezone` and `theme` stay in sync with props; a new `datafeed`
|
|
18
18
|
* recreates the widget. The ref exposes the widget (save/load, chart API, slots…).
|
|
19
19
|
*/
|
|
20
20
|
export declare const FnChart: import("react").ForwardRefExoticComponent<FnChartProps & import("react").RefAttributes<TradingChart | null>>;
|
package/dist/fn-multi-chart.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export interface FnMultiChartProps extends MultiChartOptions {
|
|
|
12
12
|
/**
|
|
13
13
|
* React wrapper around `createMultiChart`: split layout of 1–8 linked charts with one toolbar.
|
|
14
14
|
* `panes`, `layout` and `sync` are read on mount (the user changes them from the toolbar; use
|
|
15
|
-
* the ref's `setLayout`/`setSync`/`load` to drive them). `locale`, `theme` and
|
|
16
|
-
* stay in sync with props; a new `datafeed` recreates the widget.
|
|
15
|
+
* the ref's `setLayout`/`setSync`/`load` to drive them). `locale`, `displayTimezone`, `theme` and
|
|
16
|
+
* `colorScheme` stay in sync with props; a new `datafeed` recreates the widget.
|
|
17
17
|
*/
|
|
18
18
|
export declare const FnMultiChart: import("react").ForwardRefExoticComponent<FnMultiChartProps & import("react").RefAttributes<MultiChart | null>>;
|
|
19
19
|
/** The surrounding `<FnMultiChart>`'s widget (null until mounted). */
|
package/dist/index.js
CHANGED
|
@@ -45,6 +45,10 @@ var FnChart = forwardRef(function FnChart2(props, ref) {
|
|
|
45
45
|
useEffect(() => {
|
|
46
46
|
if (widget && locale) widget.setLocale(locale);
|
|
47
47
|
}, [widget, locale]);
|
|
48
|
+
const { displayTimezone } = options;
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
if (widget && displayTimezone) widget.setDisplayTimezone(displayTimezone);
|
|
51
|
+
}, [widget, displayTimezone]);
|
|
48
52
|
useEffect(() => {
|
|
49
53
|
if (widget && colorScheme) widget.setColorScheme(colorScheme);
|
|
50
54
|
}, [widget, colorScheme]);
|
|
@@ -97,6 +101,10 @@ var FnMultiChart = forwardRef2(function FnMultiChart2(props, ref) {
|
|
|
97
101
|
useEffect2(() => {
|
|
98
102
|
if (widget && locale) widget.setLocale(locale);
|
|
99
103
|
}, [widget, locale]);
|
|
104
|
+
const { displayTimezone } = options;
|
|
105
|
+
useEffect2(() => {
|
|
106
|
+
if (widget && displayTimezone) widget.setDisplayTimezone(displayTimezone);
|
|
107
|
+
}, [widget, displayTimezone]);
|
|
100
108
|
useEffect2(() => {
|
|
101
109
|
if (widget && colorScheme) widget.setColorScheme(colorScheme);
|
|
102
110
|
}, [widget, colorScheme]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funnest/charts-react",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.12",
|
|
4
4
|
"description": "React bindings for Funnest Charts: the trading widget plus SVG line, area and bar charts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"NOTICE"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@funnest/charts": "0.11.
|
|
50
|
-
"@funnest/charts-ui": "0.11.
|
|
51
|
-
"@funnest/charts-viz": "0.11.
|
|
49
|
+
"@funnest/charts": "0.11.12",
|
|
50
|
+
"@funnest/charts-ui": "0.11.12",
|
|
51
|
+
"@funnest/charts-viz": "0.11.12"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": ">=18",
|