back-testing-react 2.0.15 → 2.1.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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/back-testing-hub/back-testing-hub.tsx +4 -8
- package/src/components/back-testing-stepper/steps/input-proxy/input-proxy.tsx +0 -1
- package/src/components/back-testing-wizard/back-testing-wizard.stories.tsx +2 -2
package/package.json
CHANGED
|
@@ -119,10 +119,8 @@ function BackTestingHub(props: BackTestingHubProps){
|
|
|
119
119
|
setTimeout(function (){
|
|
120
120
|
const validNode : boolean = document.getRootNode().contains(mainPanelRef.current);
|
|
121
121
|
if(validNode){
|
|
122
|
-
if(!mapInstanceRef.current?.isMoving){
|
|
123
|
-
fetchWindstormPDFOutput();
|
|
124
|
-
} else {
|
|
125
|
-
mapInstanceRef.current.on("moveend",fetchWindstormPDFOutput)
|
|
122
|
+
if(!mapInstanceRef.current?.once("moveend",fetchWindstormPDFOutput).isMoving()){
|
|
123
|
+
fetchWindstormPDFOutput();
|
|
126
124
|
}
|
|
127
125
|
}
|
|
128
126
|
}, 750);
|
|
@@ -135,10 +133,8 @@ function BackTestingHub(props: BackTestingHubProps){
|
|
|
135
133
|
setTimeout(function (){
|
|
136
134
|
const validNode : boolean = document.getRootNode().contains(mainPanelRef.current);
|
|
137
135
|
if(validNode){
|
|
138
|
-
if(!mapInstanceRef
|
|
139
|
-
fetchEarthquakePDFOutput();
|
|
140
|
-
} else {
|
|
141
|
-
mapInstanceRef.current.on("moveend",fetchEarthquakePDFOutput)
|
|
136
|
+
if(!mapInstanceRef?.current?.once("moveend",fetchEarthquakePDFOutput).isMoving()){
|
|
137
|
+
fetchEarthquakePDFOutput();
|
|
142
138
|
}
|
|
143
139
|
}
|
|
144
140
|
}, 750);
|
|
@@ -410,7 +410,6 @@ const InputProxyStep = forwardRef<WizardStep, InputProxyStepProps>((props,ref) =
|
|
|
410
410
|
<div className="ptop-10 pbot-10">
|
|
411
411
|
<SelectInput
|
|
412
412
|
disabled={proxy.proxyChoice != RadioChoice.DEFAULT}
|
|
413
|
-
onLoad={(e:string | undefined) => updateLocationOption(proxy,e)}
|
|
414
413
|
onChange={(e:string) => updateLocationOption(proxy,e)}
|
|
415
414
|
defaultValue={proxy.locationRefId || MISSING_VALUE}
|
|
416
415
|
placeholder="Select a proxy location"
|
|
@@ -41,7 +41,7 @@ BackTestingWizardWindstormAutoDisplayTest.args = {
|
|
|
41
41
|
apiAccessToken:process.env.STORYBOOK_API_KEY,
|
|
42
42
|
env:process.env.STORYBOOK_ENV as "dev" | "uat" | "prod",
|
|
43
43
|
weatherEvent: WeatherEventOption.WINDSTORM,
|
|
44
|
-
displaySidebar:
|
|
44
|
+
displaySidebar:true,
|
|
45
45
|
displaySidepanel:false,
|
|
46
46
|
limit:1230000,
|
|
47
47
|
locations:[{addressString: "Kaseya Center", latitude:25.78141698,longitude:-80.18699518}],
|
|
@@ -91,7 +91,7 @@ BackTestingWizardEarthquakeAutoDisplayTest.args = {
|
|
|
91
91
|
mapAccessToken: process.env.STORYBOOK_MAP_ACCESS_TOKEN,
|
|
92
92
|
apiAccessToken:process.env.STORYBOOK_API_KEY,
|
|
93
93
|
env:process.env.STORYBOOK_ENV as "dev" | "uat" | "prod",
|
|
94
|
-
displaySidebar:
|
|
94
|
+
displaySidebar:true,
|
|
95
95
|
displaySidepanel:false,
|
|
96
96
|
limit: 1_000_000,
|
|
97
97
|
weatherEvent: WeatherEventOption.EARTHQUAKE,
|