@@ -9,20 +9,10 @@ import {
99 useStore ,
1010 StoreActions ,
1111} from "../WebvizContentManager/WebvizContentManager" ;
12- import { View , ViewPropTypes } from "../../shared-types/webviz-content/webviz" ;
13- import {
14- ContactPerson ,
15- ContactPersonPropTypes ,
16- } from "../../shared-types/webviz-content/contact-person" ;
17- import {
18- DeprecationWarning ,
19- DeprecationWarningPropTypes ,
20- } from "../../shared-types/webviz-content/deprecation-warning" ;
21-
22- import {
23- TourStep ,
24- TourStepPropTypes ,
25- } from "../../shared-types/webviz-content/tour-step" ;
12+ import { View } from "../../shared-types/webviz-content/webviz" ;
13+ import { ContactPerson } from "../../shared-types/webviz-content/contact-person" ;
14+ import { DeprecationWarning } from "../../shared-types/webviz-content/deprecation-warning" ;
15+ import { TourStep } from "../../shared-types/webviz-content/tour-step" ;
2616
2717import "./webviz-plugin-wrapper.css" ;
2818
@@ -122,18 +112,36 @@ export const WebvizPluginWrapper: React.FC<WebvizPluginWrapperProps> = (
122112WebvizPluginWrapper . propTypes = {
123113 id : PropTypes . string . isRequired ,
124114 name : PropTypes . string . isRequired ,
125- views : PropTypes . arrayOf ( PropTypes . shape ( ViewPropTypes ) . isRequired )
115+ views : PropTypes . arrayOf ( PropTypes . shape ( {
116+ id : PropTypes . string . isRequired ,
117+ name : PropTypes . string . isRequired ,
118+ group : PropTypes . string . isRequired ,
119+ showDownload : PropTypes . bool . isRequired ,
120+ } ) . isRequired )
126121 . isRequired ,
127122 initiallyActiveViewId : PropTypes . string . isRequired ,
128123 children : PropTypes . node ,
129124 screenshotFilename : PropTypes . string ,
130- contactPerson : PropTypes . shape ( ContactPersonPropTypes ) ,
125+ contactPerson : PropTypes . shape ( {
126+ name : PropTypes . string . isRequired ,
127+ email : PropTypes . string . isRequired ,
128+ phone : PropTypes . string . isRequired ,
129+ } ) ,
131130 deprecationWarnings : PropTypes . arrayOf (
132- PropTypes . shape ( DeprecationWarningPropTypes ) . isRequired
131+ PropTypes . shape ( {
132+ message : PropTypes . string . isRequired ,
133+ url : PropTypes . string . isRequired ,
134+ } ) . isRequired
133135 ) ,
134136 stretch : PropTypes . bool ,
135137 feedbackUrl : PropTypes . string ,
136- tourSteps : PropTypes . arrayOf ( PropTypes . shape ( TourStepPropTypes ) . isRequired ) ,
138+ tourSteps : PropTypes . arrayOf ( PropTypes . shape ( {
139+ elementId : PropTypes . string . isRequired ,
140+ viewId : PropTypes . string . isRequired ,
141+ settingsGroupId : PropTypes . string ,
142+ viewElementId : PropTypes . string ,
143+ content : PropTypes . string . isRequired ,
144+ } ) . isRequired ) ,
137145 /**
138146 * Used to allow user interactions in this component to be persisted when
139147 * the component - or the page - is refreshed. If `persisted` is truthy and
0 commit comments