Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@types/prosemirror-gapcursor
Advanced tools
TypeScript definitions for prosemirror-gapcursor
npm install --save @types/prosemirror-gapcursor
This package contains type definitions for prosemirror-gapcursor (https://github.com/ProseMirror/prosemirror-gapcursor).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prosemirror-gapcursor.
// Type definitions for prosemirror-gapcursor 1.0
// Project: https://github.com/ProseMirror/prosemirror-gapcursor
// Definitions by: Bradley Ayers <https://github.com/bradleyayers>
// David Hahn <https://github.com/davidka>
// Tim Baumann <https://github.com/timjb>
// Patrick Simmelbauer <https://github.com/patsimm>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { Plugin, Selection } from 'prosemirror-state';
import { NodeSpec } from 'prosemirror-model';
/**
* Gap cursor selections are represented using this class. Its
* `$anchor` and `$head` properties both point at the cursor position.
*/
export class GapCursor extends Selection {}
/**
* Create a gap cursor plugin. When enabled, this will capture clicks
* near and arrow-key-motion past places that don't have a normally
* selectable position nearby, and create a gap cursor selection for
* them. The cursor is drawn as an element with class
* `ProseMirror-gapcursor`. You can either include
* `style/gapcursor.css` from the package's directory or add your own
* styles to make it visible.
*/
export function gapCursor(): Plugin;
declare module "prosemirror-model" {
interface NodeSpec {
/**
* By default, gap cursor are only allowed in places where the
* default content node (in the schema content constraints) is a
* textblock node. You can customize this by adding an `allowGapCursor`
* property to your node specs — if it's true, gap cursor are allowed
* everywhere in that node, if it's false they are never allowed.
*/
allowGapCursor?: boolean | undefined;
}
}
These definitions were written by Bradley Ayers, David Hahn, Tim Baumann, and Patrick Simmelbauer.
FAQs
Stub TypeScript definitions entry for prosemirror-gapcursor, which provides its own types definitions
The npm package @types/prosemirror-gapcursor receives a total of 16,365 weekly downloads. As such, @types/prosemirror-gapcursor popularity was classified as popular.
We found that @types/prosemirror-gapcursor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.