Package Exports
- @remirror/pm
- @remirror/pm/commands
- @remirror/pm/dist/pm.browser.cjs.js
- @remirror/pm/dist/pm.browser.esm.js
- @remirror/pm/dist/pm.cjs.js
- @remirror/pm/dist/pm.esm.js
- @remirror/pm/dropcursor
- @remirror/pm/gapcursor
- @remirror/pm/history
- @remirror/pm/inputrules
- @remirror/pm/keymap
- @remirror/pm/model
- @remirror/pm/schema-list
- @remirror/pm/state
- @remirror/pm/suggest
- @remirror/pm/tables
- @remirror/pm/transform
- @remirror/pm/view
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@remirror/pm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@remirror/pm
All the bundled prosemirror dependencies which are required for the remirror core libraries.
Installation
yarn add @remirror/pm@next # yarn
pnpm add @remirror/pm@next # pnpm
npm install @remirror/pm@next # npmUsage
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';