javascript
javascript copied to clipboard
Move LinkSuggestions files to @yoast/link-suggestions package
Summary
We want to have structured packages for all our components. To achieve this, we need to move the LinkSuggestions files to a new package.
Explanation
These KeywordSuggestions files need to be moved to the new @yoast/link-suggestions package: javascript/packages/yoast-components/composites/LinkSuggestions/
Technical decisions
The version of this new package needs to be 0.1.0
Feedback?
I have some thoughts about this component, because it is doing too much at the moment:
- It has knowledge of the cornerstone functionality in the plugin.
- It is classifying suggestions based on being cornerstone or not.
- It shows a introduction text that should be in the plugin
- The clipboard is loaded in the state and that shouldn't be the case.
I think this has to be changed:
- The plugin should check if it is cornerstone or not.
- If there are two types of linksuggestions we should render the component two times.