
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@automattic/editor-autocompleter
Advanced tools
Autocompleters for the Gutenberg editor. Provides:
@name)#tag)+xpost)The completers require Gutenberg to function but are independant of WordPress. A data source (local or remote) needs to be supplied.
Matches are highlighted within the autocompleter.
npm install @automattic/isolated-block-editor" --save
Then include in your code with something like this:
import { tagCompleter, xpostCompleter, userCompleter } from '@automattic/editor-autocompleter';
import '@automattic/editor-autocompleter/dist/style.scss';
import apiFetch from '@wordpress/api-fetch';
function tagFetcher( search: string ) {
return apiFetch( { path: '/api/tags?s=' + encodeURIComponent( search ) } );
}
function userFetcher( search: string ) {
return apiFetch( { path: '/api/user?s=' + encodeURIComponent( search ) } );
}
function xpostFetcher( search: string ) {
return apiFetch( { path: '/api/xpost?s=' + encodeURIComponent( search ) } );
}
function addCompleters( completers = [] ) {
// Add tag completer
completers.push( tagCompleter( tagFetcher, true ) );
// Add xpost completer
completers.push( xpostCompleter( xpostFetcher ) );
// Override the standard user completer with a custom one
return completers
.filter( ( filter ) => filter.name !== 'users' )
.concat( [ userCompleter( useUserFetcher ) ] );
}
addFilter(
'editor.Autocomplete.completers',
'my-program/autocompleters',
addCompleters
);
Each autocompleter takes a 'fetcher' and an optional isRemote flag. The fetcher is a function that returns either a promise (i.e. from a remote API call), or a plain array of values.
If the isRemote flag is set to true then a loading indicator will be shown if the returned data is not immediate.
To make a release, ensure you are on the trunk branch. Do not update the version number in package.json - the release process will do this for you. Then run:
GITHUB_TOKEN=<TOKEN> yarn dist
FAQs
Autocompleters for Gutenberg
The npm package @automattic/editor-autocompleter receives a total of 3 weekly downloads. As such, @automattic/editor-autocompleter popularity was classified as not popular.
We found that @automattic/editor-autocompleter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 49 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.