@@ -343,46 +343,7 @@ class IDEView extends React.Component {
343343 allowResize = { this . props . ide . consoleIsExpanded }
344344 className = "editor-preview-subpanel"
345345 >
346- < Editor
347- lintWarning = { this . props . preferences . lintWarning }
348- linewrap = { this . props . preferences . linewrap }
349- lintMessages = { this . props . editorAccessibility . lintMessages }
350- updateLintMessage = { this . props . updateLintMessage }
351- clearLintMessage = { this . props . clearLintMessage }
352- file = { this . props . selectedFile }
353- updateFileContent = { this . props . updateFileContent }
354- fontSize = { this . props . preferences . fontSize }
355- lineNumbers = { this . props . preferences . lineNumbers }
356- files = { this . props . files }
357- editorOptionsVisible = { this . props . ide . editorOptionsVisible }
358- showEditorOptions = { this . props . showEditorOptions }
359- closeEditorOptions = { this . props . closeEditorOptions }
360- showKeyboardShortcutModal = {
361- this . props . showKeyboardShortcutModal
362- }
363- setUnsavedChanges = { this . props . setUnsavedChanges }
364- isPlaying = { this . props . ide . isPlaying }
365- theme = { this . props . preferences . theme }
366- startRefreshSketch = { this . props . startRefreshSketch }
367- stopSketch = { this . props . stopSketch }
368- autorefresh = { this . props . preferences . autorefresh }
369- unsavedChanges = { this . props . ide . unsavedChanges }
370- projectSavedTime = { this . props . project . updatedAt }
371- isExpanded = { this . props . ide . sidebarIsExpanded }
372- expandSidebar = { this . props . expandSidebar }
373- collapseSidebar = { this . props . collapseSidebar }
374- isUserOwner = { isUserOwner ( this . props ) }
375- clearConsole = { this . props . clearConsole }
376- consoleEvents = { this . props . console }
377- showRuntimeErrorWarning = { this . props . showRuntimeErrorWarning }
378- hideRuntimeErrorWarning = { this . props . hideRuntimeErrorWarning }
379- runtimeErrorWarningVisible = {
380- this . props . ide . runtimeErrorWarningVisible
381- }
382- provideController = { ( ctl ) => {
383- this . cmController = ctl ;
384- } }
385- />
346+ < Editor provideController = { ( ctl ) => { this . cmController = ctl ; } } />
386347 < Console />
387348 </ SplitPane >
388349 < section className = "preview-frame-holder" >
@@ -533,31 +494,25 @@ IDEView.propTypes = {
533494 } ) . isRequired ,
534495 saveProject : PropTypes . func . isRequired ,
535496 ide : PropTypes . shape ( {
536- isPlaying : PropTypes . bool . isRequired ,
537- isAccessibleOutputPlaying : PropTypes . bool . isRequired ,
538- consoleEvent : PropTypes . array , // eslint-disable-line
539- modalIsVisible : PropTypes . bool . isRequired ,
540- sidebarIsExpanded : PropTypes . bool . isRequired ,
541- consoleIsExpanded : PropTypes . bool . isRequired ,
542- preferencesIsVisible : PropTypes . bool . isRequired ,
543- projectOptionsVisible : PropTypes . bool . isRequired ,
544- newFolderModalVisible : PropTypes . bool . isRequired ,
497+ errorType : PropTypes . string ,
498+ keyboardShortcutVisible : PropTypes . bool . isRequired ,
545499 shareModalVisible : PropTypes . bool . isRequired ,
546500 shareModalProjectId : PropTypes . string . isRequired ,
547501 shareModalProjectName : PropTypes . string . isRequired ,
548502 shareModalProjectUsername : PropTypes . string . isRequired ,
549- editorOptionsVisible : PropTypes . bool . isRequired ,
550- keyboardShortcutVisible : PropTypes . bool . isRequired ,
551- unsavedChanges : PropTypes . bool . isRequired ,
552- infiniteLoop : PropTypes . bool . isRequired ,
553- previewIsRefreshing : PropTypes . bool . isRequired ,
554- infiniteLoopMessage : PropTypes . string . isRequired ,
555- projectSavedTime : PropTypes . string ,
556503 previousPath : PropTypes . string . isRequired ,
557- justOpenedProject : PropTypes . bool . isRequired ,
558- errorType : PropTypes . string ,
559- runtimeErrorWarningVisible : PropTypes . bool . isRequired ,
504+ previewIsRefreshing : PropTypes . bool . isRequired ,
505+ isPlaying : PropTypes . bool . isRequired ,
506+ isAccessibleOutputPlaying : PropTypes . bool . isRequired ,
507+ projectOptionsVisible : PropTypes . bool . isRequired ,
508+ preferencesIsVisible : PropTypes . bool . isRequired ,
509+ modalIsVisible : PropTypes . bool . isRequired ,
560510 uploadFileModalVisible : PropTypes . bool . isRequired ,
511+ newFolderModalVisible : PropTypes . bool . isRequired ,
512+ justOpenedProject : PropTypes . bool . isRequired ,
513+ sidebarIsExpanded : PropTypes . bool . isRequired ,
514+ consoleIsExpanded : PropTypes . bool . isRequired ,
515+ unsavedChanges : PropTypes . bool . isRequired ,
561516 } ) . isRequired ,
562517 stopSketch : PropTypes . func . isRequired ,
563518 project : PropTypes . shape ( {
@@ -572,11 +527,9 @@ IDEView.propTypes = {
572527 editorAccessibility : PropTypes . shape ( {
573528 lintMessages : PropTypes . array . isRequired , // eslint-disable-line
574529 } ) . isRequired ,
575- updateLintMessage : PropTypes . func . isRequired ,
576- clearLintMessage : PropTypes . func . isRequired ,
577530 preferences : PropTypes . shape ( {
578- fontSize : PropTypes . number . isRequired ,
579531 autosave : PropTypes . bool . isRequired ,
532+ fontSize : PropTypes . number . isRequired ,
580533 linewrap : PropTypes . bool . isRequired ,
581534 lineNumbers : PropTypes . bool . isRequired ,
582535 lintWarning : PropTypes . bool . isRequired ,
@@ -602,7 +555,6 @@ IDEView.propTypes = {
602555 name : PropTypes . string . isRequired ,
603556 content : PropTypes . string . isRequired ,
604557 } ) ) . isRequired ,
605- updateFileContent : PropTypes . func . isRequired ,
606558 selectedFile : PropTypes . shape ( {
607559 id : PropTypes . string . isRequired ,
608560 content : PropTypes . string . isRequired ,
@@ -630,9 +582,6 @@ IDEView.propTypes = {
630582 closeNewFileModal : PropTypes . func . isRequired ,
631583 createFolder : PropTypes . func . isRequired ,
632584 closeShareModal : PropTypes . func . isRequired ,
633- showEditorOptions : PropTypes . func . isRequired ,
634- closeEditorOptions : PropTypes . func . isRequired ,
635- showKeyboardShortcutModal : PropTypes . func . isRequired ,
636585 closeKeyboardShortcutModal : PropTypes . func . isRequired ,
637586 toast : PropTypes . shape ( {
638587 isVisible : PropTypes . bool . isRequired ,
@@ -642,22 +591,14 @@ IDEView.propTypes = {
642591 setRouteLeaveHook : PropTypes . func ,
643592 } ) . isRequired ,
644593 route : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . element ] ) . isRequired ,
645- setUnsavedChanges : PropTypes . func . isRequired ,
646594 setTheme : PropTypes . func . isRequired ,
647595 endSketchRefresh : PropTypes . func . isRequired ,
648- startRefreshSketch : PropTypes . func . isRequired ,
649596 setBlobUrl : PropTypes . func . isRequired ,
650597 setPreviousPath : PropTypes . func . isRequired ,
651- console : PropTypes . arrayOf ( PropTypes . shape ( {
652- method : PropTypes . string . isRequired ,
653- args : PropTypes . arrayOf ( PropTypes . string ) ,
654- } ) ) . isRequired ,
655598 clearConsole : PropTypes . func . isRequired ,
656599 showErrorModal : PropTypes . func . isRequired ,
657600 hideErrorModal : PropTypes . func . isRequired ,
658601 clearPersistedState : PropTypes . func . isRequired ,
659- showRuntimeErrorWarning : PropTypes . func . isRequired ,
660- hideRuntimeErrorWarning : PropTypes . func . isRequired ,
661602 startSketch : PropTypes . func . isRequired ,
662603 openUploadFileModal : PropTypes . func . isRequired ,
663604 closeUploadFileModal : PropTypes . func . isRequired ,
0 commit comments