diff --git a/packages/js/src/components/contentAnalysis/ReadabilityAnalysis.js b/packages/js/src/components/contentAnalysis/ReadabilityAnalysis.js index fcd5c0cc656..3b98e03e35a 100644 --- a/packages/js/src/components/contentAnalysis/ReadabilityAnalysis.js +++ b/packages/js/src/components/contentAnalysis/ReadabilityAnalysis.js @@ -235,6 +235,7 @@ ReadabilityAnalysis.defaultProps = { shouldUpsell: false, shouldUpsellHighlighting: false, isAiFeatureEnabled: false, + isElementor: false, }; export default withSelect( select => { diff --git a/packages/js/src/components/contentAnalysis/SeoAnalysis.js b/packages/js/src/components/contentAnalysis/SeoAnalysis.js index 437816f1cf7..5746fd8c427 100644 --- a/packages/js/src/components/contentAnalysis/SeoAnalysis.js +++ b/packages/js/src/components/contentAnalysis/SeoAnalysis.js @@ -3,7 +3,6 @@ import { withSelect } from "@wordpress/data"; import { Component, Fragment } from "@wordpress/element"; import { __, sprintf } from "@wordpress/i18n"; import { addQueryArgs } from "@wordpress/url"; -import { get } from "lodash"; import { LocationConsumer, RootContext } from "@yoast/externals/contexts"; import PropTypes from "prop-types"; import styled from "styled-components"; @@ -307,6 +306,7 @@ SeoAnalysis.propTypes = { shouldUpsellHighlighting: PropTypes.bool, isElementor: PropTypes.bool, isAiFeatureEnabled: PropTypes.bool, + isPremium: PropTypes.bool, }; SeoAnalysis.defaultProps = { @@ -319,6 +319,7 @@ SeoAnalysis.defaultProps = { shouldUpsellHighlighting: false, isElementor: false, isAiFeatureEnabled: false, + isPremium: false, }; export default withSelect( ( select, ownProps ) => { @@ -328,7 +329,7 @@ export default withSelect( ( select, ownProps ) => { getResultsForKeyword, getIsElementorEditor, getIsPremium, - getIsAiFeatureEnabled + getIsAiFeatureEnabled, } = select( "yoast-seo/editor" ); const keyword = getFocusKeyphrase(); diff --git a/packages/js/src/redux/selectors/preferences.js b/packages/js/src/redux/selectors/preferences.js index c56b42d7538..8b10cb45450 100644 --- a/packages/js/src/redux/selectors/preferences.js +++ b/packages/js/src/redux/selectors/preferences.js @@ -76,12 +76,12 @@ export const getIsWooSeoUpsellTerm = ( state ) => { }; /** - * @deprecated This function is deprecated and will be removed in future versions. + * @deprecated This function is deprecated and will be removed in future versions. * Please use the getIsAiFeatureEnabled from yoast-seo-premium store instead. - * + * * @returns {boolean} Whether the AI feature is enabled. */ export const getIsAiFeatureEnabled = () => { - const getIsAiFeatureEnabledFromPremium = select("yoast-seo-premium/editor")?.getIsAiFeatureEnabled; + const getIsAiFeatureEnabledFromPremium = select( "yoast-seo-premium/editor" )?.getIsAiFeatureEnabled; return getIsAiFeatureEnabledFromPremium ? getIsAiFeatureEnabledFromPremium() : Boolean( window.wpseoAdminL10n.isAiFeatureActive ); };