Skip to content

Commit

Permalink
implementation of the related keyphrase suggestions package
Browse files Browse the repository at this point in the history
  • Loading branch information
vraja-pro committed Nov 5, 2024
1 parent 9fd9766 commit ff344ec
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
1 change: 1 addition & 0 deletions admin/class-admin-asset-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ protected function load_renamed_scripts() {
'styled-components' => 'styled-components-package',
'style-guide' => 'style-guide-package',
'yoast-components' => 'components-new-package',
'related-keyphrase-suggestions' => 'related-keyphrase-suggestions-package',
];

foreach ( $renamed_scripts as $original => $replacement ) {
Expand Down
5 changes: 0 additions & 5 deletions css/src/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,6 @@
position: relative;
}

#yoast-semrush-country-selector {
position: relative;
border: none;
}

.yoast-related-keyphrases-modal__chart {
display: block;
}
1 change: 1 addition & 0 deletions css/src/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "@yoast/ui-library";
@import "@yoast/related-keyphrase-suggestions";

@tailwind base;
@tailwind components;
Expand Down
18 changes: 10 additions & 8 deletions packages/js/src/components/SEMrushRelatedKeyphrasesModalContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* External dependencies */
import { Fragment } from "@wordpress/element";
import { KeyphrasesTable } from "@yoast/related-keyphrase-suggestions";
import { Root } from "@yoast/ui-library";
import { __ } from "@wordpress/i18n";
import PropTypes from "prop-types";
import { isEmpty } from "lodash";
Expand Down Expand Up @@ -117,14 +119,14 @@ export default function RelatedKeyphraseModalContent( props ) {
) }

{ getUserMessage( props ) }

<SEMrushKeyphrasesTable
keyphrase={ keyphrase }
relatedKeyphrases={ relatedKeyphrases }
countryCode={ countryCode }
renderAction={ renderAction }
data={ response }
/>
<Root>
<KeyphrasesTable
relatedKeyphrases={ relatedKeyphrases }
columnNames={ response?.results?.columnNames }
data={ response?.results?.rows }
renderButton={ renderAction }
/>
</Root>
</Fragment>
);
}
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
presets: [ preset ],
content: [
"./packages/ui-library/src/**/!(stories).js",
"./packages/related-keyphrase-suggestions/src/**/!(stories).js",
"./packages/js/src/**/*.js",
"./src/integrations/settings-integration.php",
],
Expand Down

0 comments on commit ff344ec

Please sign in to comment.