@prosekit/extensions
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -86,4 +86,13 @@ import { CommandArgs } from '@prosekit/core'; | ||
NODES: "heading"; | ||
COMMAND_ARGS: { | ||
toggleHeading: [attrs?: HeadingAttrs | undefined]; | ||
}; | ||
}>; | ||
export declare function addHeadingCommands(): Extension< { | ||
COMMAND_ARGS: { | ||
toggleHeading: [attrs?: HeadingAttrs | undefined]; | ||
}; | ||
}>; | ||
export declare function addHeadingInputRule(): Extension<ExtensionTyping<string, string, CommandArgs>>; | ||
@@ -90,0 +99,0 @@ |
@@ -32,3 +32,3 @@ // src/bold/index.ts | ||
toDOM() { | ||
return ["em", 0]; | ||
return ["strong", 0]; | ||
} | ||
@@ -35,0 +35,0 @@ }); |
export { addHeadingSpec } from './_tsup-dts-rollup'; | ||
export { addHeadingKeymap } from './_tsup-dts-rollup'; | ||
export { addHeadingInputRule } from './_tsup-dts-rollup'; | ||
export { addHeadingCommands } from './_tsup-dts-rollup'; | ||
export { addHeading } from './_tsup-dts-rollup'; | ||
export { HeadingAttrs } from './_tsup-dts-rollup'; |
// src/heading/index.ts | ||
import { | ||
addCommands, | ||
addInputRule, | ||
@@ -56,2 +57,9 @@ addKeymap, | ||
} | ||
function addHeadingCommands() { | ||
return addCommands({ | ||
toggleHeading: (attrs) => { | ||
return toggleNode({ type: "heading", attrs }); | ||
} | ||
}); | ||
} | ||
function addHeading() { | ||
@@ -61,3 +69,4 @@ return defineExtension([ | ||
addHeadingInputRule(), | ||
addHeadingKeymap() | ||
addHeadingKeymap(), | ||
addHeadingCommands() | ||
]); | ||
@@ -67,2 +76,3 @@ } | ||
addHeading, | ||
addHeadingCommands, | ||
addHeadingInputRule, | ||
@@ -69,0 +79,0 @@ addHeadingKeymap, |
{ | ||
"name": "@prosekit/extensions", | ||
"type": "module", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"private": false, | ||
@@ -104,4 +104,4 @@ "author": { | ||
"dependencies": { | ||
"@prosekit/core": "^0.0.9", | ||
"@prosekit/pm": "^0.0.4", | ||
"@prosekit/core": "^0.0.10", | ||
"@prosekit/pm": "^0.0.5", | ||
"highlight.js": "^11.8.0", | ||
@@ -108,0 +108,0 @@ "prosemirror-flat-list": "^0.4.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42258
1256
+ Added@prosekit/core@0.0.10(transitive)
+ Added@prosekit/pm@0.0.5(transitive)
- Removed@prosekit/core@0.0.9(transitive)
- Removed@prosekit/pm@0.0.4(transitive)
Updated@prosekit/core@^0.0.10
Updated@prosekit/pm@^0.0.5