@@ -53,7 +53,6 @@ const ImportModal = ( {
5353 widgets : true ,
5454 cleanup : false ,
5555 performanceAddon : true ,
56- hyveLite : true ,
5756 theme_install : themeData !== false ,
5857 } ) ;
5958 const site = tiobDash . onboarding . homeUrl || '' ;
@@ -62,7 +61,6 @@ const ImportModal = ( {
6261 const [ performanceAddonProgress , setPerformanceAddonProgress ] = useState (
6362 false
6463 ) ;
65- const [ hyveLiteProgress , setHyveLiteProgress ] = useState ( false ) ;
6664 const [ cleanupProgress , setCleanupProgress ] = useState ( false ) ;
6765 const [ pluginsProgress , setPluginsProgress ] = useState ( false ) ;
6866 const [ contentProgress , setContentProgress ] = useState ( false ) ;
@@ -261,44 +259,6 @@ const ImportModal = ( {
261259 }
262260 ) ,
263261 } ,
264- hyveLite : {
265- title : __ ( 'AI Chatbot' , 'templates-patterns-collection' ) ,
266- icon : 'admin-comments' ,
267- tooltip : createInterpolateElement (
268- sprintf (
269- // translators: %s is Hyve plugin name.
270- __ (
271- 'Hyve is an AI-powered chatbot that transforms your WordPress content into engaging conversations. %sHyve%s' ,
272- 'templates-patterns-collection'
273- ) ,
274- '<a><span>' ,
275- '</span><icon/></a>'
276- ) ,
277- {
278- a : (
279- // eslint-disable-next-line jsx-a11y/anchor-has-content
280- < a
281- href = "https://wordpress.org/plugins/hyve-lite/"
282- target = { '_blank' }
283- rel = "external noreferrer noopener"
284- style = { {
285- textDecoration : 'none' ,
286- display : 'inline-flex' ,
287- alignItems : 'center' ,
288- } }
289- />
290- ) ,
291- icon : (
292- < Icon
293- size = { 10 }
294- icon = "external"
295- style = { { marginLeft : 0 } }
296- />
297- ) ,
298- span : < div /> ,
299- }
300- ) ,
301- } ,
302262 } ;
303263
304264 if ( isCleanupAllowed === 'yes' ) {
@@ -546,8 +506,7 @@ const ImportModal = ( {
546506 // console.clear();
547507 if (
548508 ! pluginOptions &&
549- ! general . performanceAddon &&
550- ! general . hyveLite
509+ ! general . performanceAddon
551510 ) {
552511 console . log ( '[S] Plugins.' ) ;
553512 runImportContent ( ) ;
@@ -656,7 +615,7 @@ const ImportModal = ( {
656615 function runPerformanceAddonInstall ( ) {
657616 if ( ! general . performanceAddon ) {
658617 console . log ( '[S] Performance Addon.' ) ;
659- runHyveLiteInstall ( ) ;
618+ importDone ( ) ;
660619 return false ;
661620 }
662621 setCurrentStep ( 'performanceAddon' ) ;
@@ -670,34 +629,10 @@ const ImportModal = ( {
670629 }
671630 console . log ( '[D] Performance Addon.' ) ;
672631 setPerformanceAddonProgress ( 'done' ) ;
673- runHyveLiteInstall ( ) ;
674- } )
675- . catch ( ( incomingError ) =>
676- handleError ( incomingError , 'performanceAddon' )
677- ) ;
678- }
679-
680- function runHyveLiteInstall ( ) {
681- if ( ! general . hyveLite ) {
682- console . log ( '[S] Hyve Lite.' ) ;
683- importDone ( ) ;
684- return false ;
685- }
686- setCurrentStep ( 'hyveLite' ) ;
687- console . log ( '[P] Hyve Lite.' ) ;
688-
689- installPlugins ( { 'hyve-lite' : true } )
690- . then ( ( response ) => {
691- if ( ! response . success ) {
692- handleError ( response , 'hyveLite' ) ;
693- return false ;
694- }
695- console . log ( '[D] Hyve Lite.' ) ;
696- setHyveLiteProgress ( 'done' ) ;
697632 importDone ( ) ;
698633 } )
699634 . catch ( ( incomingError ) =>
700- handleError ( incomingError , 'hyveLite ' )
635+ handleError ( incomingError , 'performanceAddon ' )
701636 ) ;
702637 }
703638
@@ -749,10 +684,6 @@ const ImportModal = ( {
749684 'Something went wrong while installing the performance addon.' ,
750685 'templates-patterns-collection'
751686 ) ,
752- hyveLite : __ (
753- 'Something went wrong while installing the Hyve Lite plugin.' ,
754- 'templates-patterns-collection'
755- ) ,
756687 } ;
757688
758689 switch ( step ) {
@@ -774,9 +705,6 @@ const ImportModal = ( {
774705 case 'performanceAddon' :
775706 setPerformanceAddonProgress ( 'error' ) ;
776707 break ;
777- case 'hyveLite' :
778- setHyveLiteProgress ( 'error' ) ;
779- break ;
780708 }
781709 setError (
782710 incomingError . data
@@ -959,7 +887,6 @@ const ImportModal = ( {
959887 customizer : customizerProgress ,
960888 widgets : widgetsProgress ,
961889 performanceAddon : performanceAddonProgress ,
962- hyveLite : hyveLiteProgress ,
963890 } }
964891 currentStep = { currentStep }
965892 willDo = { general }
0 commit comments