
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@smartbear/react-gherkin-editor
Advanced tools
A Gherkin language editor for React.
React Gherkin Editor is a wrapper arround React Ace Editor specially designed for Gherkin.
Features:
Using npm:
npm install --save @smartbear/react-gherkin-editor
Using yarn:
yarn add @smartbear/react-gherkin-editor
import React from 'react'
import { render } from 'react-dom'
import ReactGherkinEditor from '@smartbear/react-gherkin-editor'
const root = document.createElement('div')
document.body.appendChild(root)
const initialValue = `Feature: Serve coffee
As a coffee lover
I can get coffee from the machine
So I can enjoy the rest of the day
Scenario: Simple use
# Well, sometimes, you just get a coffee.
Given the coffee machine is started
When I take a coffee
Then coffee should be served
And message "Please take your coffee" should be printed`
const steps = [
'I start the coffee machine using language "lang"',
'I shutdown the coffee machine',
'message "message" should be displayed'
]
const onValueChange = console.log
const autoCompleteFunction = async (_keyword, text) => {
const matches = steps.filter(step => step.startsWith(text))
const completions = matches.map(match => ({
caption: match,
value: match,
score: Math.floor(Math.random() * Math.floor(100)),
meta: 'Step'
}))
return completions
}
render(
<ReactGherkinEditor
initialValue={initialValue}
onChange={onValueChange}
autoCompleteFunction={autoCompleteFunction}
language='en'
theme='cucumber'
/>,
root
)
[2.4.14]
FAQs
A Gherkin language editor for React.
The npm package @smartbear/react-gherkin-editor receives a total of 6,014 weekly downloads. As such, @smartbear/react-gherkin-editor popularity was classified as popular.
We found that @smartbear/react-gherkin-editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.