@xyo-network/react-price-forecast-plugin 7.5.0 → 7.5.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-price-forecast-plugin",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.2",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"src"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@xylabs/react-async-effect": "~7.1.
|
|
47
|
-
"@xylabs/react-flexbox": "~7.1.
|
|
48
|
-
"@xylabs/react-theme": "~7.1.
|
|
46
|
+
"@xylabs/react-async-effect": "~7.1.12",
|
|
47
|
+
"@xylabs/react-flexbox": "~7.1.12",
|
|
48
|
+
"@xylabs/react-theme": "~7.1.12",
|
|
49
49
|
"@xyo-network/diviner-forecasting-model": "~5.3.2",
|
|
50
50
|
"@xyo-network/payload-model": "~5.3.2",
|
|
51
|
-
"@xyo-network/react-payload-plugin": "7.5.
|
|
51
|
+
"@xyo-network/react-payload-plugin": "7.5.2",
|
|
52
52
|
"chart.js": "~4.5.1",
|
|
53
53
|
"chartjs-adapter-luxon": "~1.3.1",
|
|
54
54
|
"react-chartjs-2": "~5.3.1"
|
|
@@ -70,7 +70,8 @@
|
|
|
70
70
|
"react-router-dom": "^7.13.0",
|
|
71
71
|
"storybook": "~10.2.1",
|
|
72
72
|
"typescript": "^5.9.3",
|
|
73
|
-
"vite": "~7.3.1"
|
|
73
|
+
"vite": "~7.3.1",
|
|
74
|
+
"zod": "^4.3.6"
|
|
74
75
|
},
|
|
75
76
|
"peerDependencies": {
|
|
76
77
|
"@mui/icons-material": ">=6 <8",
|
|
@@ -78,7 +79,8 @@
|
|
|
78
79
|
"luxon": "~3.7.1",
|
|
79
80
|
"react": "^19",
|
|
80
81
|
"react-dom": "^19",
|
|
81
|
-
"react-router-dom": "^7"
|
|
82
|
+
"react-router-dom": "^7",
|
|
83
|
+
"zod": "^4"
|
|
82
84
|
},
|
|
83
85
|
"publishConfig": {
|
|
84
86
|
"access": "public"
|
|
@@ -28,7 +28,7 @@ const StorybookEntry = {
|
|
|
28
28
|
title: 'plugin/price-forecast/DetailsBox',
|
|
29
29
|
} as Meta<typeof PriceForecastDetailsBox>
|
|
30
30
|
|
|
31
|
-
const Template: StoryFn<typeof PriceForecastDetailsBox> = (args) => {
|
|
31
|
+
const Template: StoryFn<typeof PriceForecastDetailsBox> = ({ payload, ...args }) => {
|
|
32
32
|
const [showPayloads, setShowPayloads] = useState(false)
|
|
33
33
|
const forecastPayloadRef = useRef<HTMLParagraphElement>(null)
|
|
34
34
|
const sourcePayloadsRef = useRef<HTMLParagraphElement>(null)
|
|
@@ -38,7 +38,7 @@ const Template: StoryFn<typeof PriceForecastDetailsBox> = (args) => {
|
|
|
38
38
|
}
|
|
39
39
|
return (
|
|
40
40
|
<>
|
|
41
|
-
<PriceForecastDetailsBox mb={3} {...args} />
|
|
41
|
+
<PriceForecastDetailsBox mb={3} payload={payload} {...args} />
|
|
42
42
|
<FlexCol>
|
|
43
43
|
<ButtonGroup>
|
|
44
44
|
<Button variant="contained" onClick={() => handleClick(forecastPayloadRef)}>
|
|
@@ -53,7 +53,7 @@ const Template: StoryFn<typeof PriceForecastDetailsBox> = (args) => {
|
|
|
53
53
|
<Typography ref={forecastPayloadRef}>
|
|
54
54
|
ForecastPayload:
|
|
55
55
|
{' '}
|
|
56
|
-
<code>{JSON.stringify(
|
|
56
|
+
<code>{JSON.stringify(payload, null, 2)}</code>
|
|
57
57
|
</Typography>
|
|
58
58
|
</pre>
|
|
59
59
|
<pre>
|