Skip to content

Commit

Permalink
feat(deps): update prosemirror dependencies (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m1d0v authored Jun 10, 2024
1 parent 23f71f1 commit c1ae1e2
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 39 deletions.
58 changes: 29 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,20 +180,20 @@
"markdown-it-ins": "^3.0.1",
"markdown-it-mark": "^3.0.1",
"markdown-it-sub": "^1.0.0",
"prosemirror-autocomplete": "0.3.1",
"prosemirror-autocomplete": "0.4.3",
"prosemirror-codemark": "0.4.2",
"prosemirror-commands": "1.5.2",
"prosemirror-dropcursor": "1.8.1",
"prosemirror-history": "1.3.2",
"prosemirror-inputrules": "1.3.0",
"prosemirror-history": "1.4.0",
"prosemirror-inputrules": "1.4.0",
"prosemirror-keymap": "1.2.2",
"prosemirror-model": "1.19.4",
"prosemirror-model": "1.21.0",
"prosemirror-schema-list": "1.3.0",
"prosemirror-state": "1.4.3",
"prosemirror-test-builder": "1.1.1",
"prosemirror-transform": "1.8.0",
"prosemirror-transform": "1.9.0",
"prosemirror-utils": "1.2.0",
"prosemirror-view": "1.32.7",
"prosemirror-view": "1.33.6",
"react-error-boundary": "^3.1.4",
"react-use": "^17.3.2",
"tslib": "^2.3.1"
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/markdown/Breaks/BreaksSpecs/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {ParseRule} from 'prosemirror-model';
import type {TagParseRule} from 'prosemirror-model';

import type {ExtensionAuto} from '../../../../core';
import {nodeTypeFactory} from '../../../../utils/schema';
Expand All @@ -21,7 +21,7 @@ export type BreaksSpecsOptions = {
export const BreaksSpecs: ExtensionAuto<BreaksSpecsOptions> = (builder, opts) => {
const {preferredBreak = 'hard'} = opts;

const parseDOM: ParseRule[] = [{tag: 'br'}];
const parseDOM: TagParseRule[] = [{tag: 'br'}];

builder.addNode(BreakNodeName.HardBreak, () => ({
spec: {
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/yfm/YfmHeading/YfmHeadingSpecs/utils.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type {ParseRule} from 'prosemirror-model';
import type {TagParseRule} from 'prosemirror-model';

import {HeadingLevel, YfmHeadingAttr} from '../const';
export {hType, hasParentHeading, headingRule} from '../../../markdown/Heading/utils';
// const slug = require('slugify');

export const getNodeAttrs =
(level: HeadingLevel): ParseRule['getAttrs'] =>
(level: HeadingLevel): TagParseRule['getAttrs'] =>
(node) => ({
[YfmHeadingAttr.Level]: level,
[YfmHeadingAttr.Id]: (node as Element).getAttribute('id') || '',
Expand Down

0 comments on commit c1ae1e2

Please sign in to comment.