
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@squiz/formatted-text-editor
Advanced tools
This repo contains the necessary code to develop and publish an NPM package for creating formatted text editors for use in Squiz products.
This repo contains the necessary code to develop and publish an NPM package for creating formatted text editors for use in Squiz products.
The formatted text editor is using the Remirror React library.
Provided you have Volta installed as soon as you are in the formatted-text-editor directory you should be on the correct Node version.
See the package.json for the specific version.
Now run the following commands from the packages/formatted-text-editor/ directory.
npm i
npm run dev
This will expose http://localhost:5173/ and this can be viewed in the browser.
TIP: Make sure you have already installed the node modules at the root level of the repo.
Tests must be written when contributing to this package. Tests are automatically run in CI and test failure will result in unmerged code.
This package using Jest to perform Unit testing. In addition to Jest we are using a few Testing Library utilities:
Tests should be co-located with componentry and should strive for maximum coverage.
To run tests locally you can run:
npm run test
Or if you'd like to "watch" for changes:
npm run test:watch
When testing text input in the text editor, it is recommended to use the <MockEditor /> component, which is a simple wrapper around the Remirror component that provides additional functionality for testing (supplying text into the editor).
Test coverage is enforced globally in this package. You can run the test coverage script from the package root:
npm run test:coverage
Coverage will also run as part of the normal test script. Please see ./jest.config.ts for the currently configured thresholds.
This package uses Cypress for end to end testing.
To run tests locally you can run:
npm run test:e2e
Cypress is configured to look at a preview dev environment on http://localhost:8080.
FAQs
This repo contains the necessary code to develop and publish an NPM package for creating formatted text editors for use in Squiz products.
The npm package @squiz/formatted-text-editor receives a total of 120 weekly downloads. As such, @squiz/formatted-text-editor popularity was classified as not popular.
We found that @squiz/formatted-text-editor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 67 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.