JSPM

@remirror/pm

0.0.0-pr877.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 25288
  • Score
    100M100P100Q154007F
  • License MIT

A bundled library containing all the core prosemirror libraries required for using remirror

Package Exports

  • @remirror/pm
  • @remirror/pm/collab
  • @remirror/pm/commands
  • @remirror/pm/dropcursor
  • @remirror/pm/gapcursor
  • @remirror/pm/history
  • @remirror/pm/inputrules
  • @remirror/pm/keymap
  • @remirror/pm/model
  • @remirror/pm/package.json
  • @remirror/pm/paste-rules
  • @remirror/pm/schema-list
  • @remirror/pm/state
  • @remirror/pm/suggest
  • @remirror/pm/tables
  • @remirror/pm/trailing-node
  • @remirror/pm/transform
  • @remirror/pm/types/collab
  • @remirror/pm/types/commands
  • @remirror/pm/types/dropcursor
  • @remirror/pm/types/extra/pm-types
  • @remirror/pm/types/extra/pm-utils
  • @remirror/pm/types/gapcursor
  • @remirror/pm/types/history
  • @remirror/pm/types/index
  • @remirror/pm/types/inputrules
  • @remirror/pm/types/keymap
  • @remirror/pm/types/model
  • @remirror/pm/types/paste-rules
  • @remirror/pm/types/schema-list
  • @remirror/pm/types/state
  • @remirror/pm/types/suggest
  • @remirror/pm/types/tables
  • @remirror/pm/types/trailing-node
  • @remirror/pm/types/transform
  • @remirror/pm/types/view
  • @remirror/pm/view

Readme

@remirror/pm

All the bundled prosemirror dependencies which are required for the remirror core libraries.

Version Weekly Downloads Bundled size Typed Codebase MIT License

Installation

yarn add @remirror/pm # yarn
pnpm add @remirror/pm # pnpm
npm install @remirror/pm # npm

Usage

This bundles up the prosemirror libraries into one package to make development and consumption of the remirror codebase simpler. All prosemirror libraries are available as es-modules which makes tree shaking with rollup, webpack and other build tools possible.

This library is a required peer dependency when using remirror in your codebase. You might never need to use it directly, but in case you do, here's a snippet of how to do so.

// Top level provides types and utilities for converting commands.
import type { EditorSchema } from '@remirror/pm';
import { chainableEditorState } from '@remirror/pm';
// Nested imports provides access to the individual prosemirror library exports.
import { EditorState } from '@remirror/pm/state';
import { Suggest } from '@remirror/pm/suggest';
import { View } from '@remirror/pm/view';