Remove breakOrSubmit.aggressive option
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@welshman/editor",
|
"name": "@welshman/editor",
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"pub": "npm run check && npm run build && npm publish",
|
"pub": "npm run check && npm run build && npm publish",
|
||||||
"fix": "",
|
"fix": "",
|
||||||
|
|||||||
@@ -3,9 +3,6 @@ import {HardBreak, type HardBreakOptions} from "@tiptap/extension-hard-break"
|
|||||||
export interface BreakOrSubmitOptions extends HardBreakOptions {
|
export interface BreakOrSubmitOptions extends HardBreakOptions {
|
||||||
/** Handler for when enter is pressed. */
|
/** Handler for when enter is pressed. */
|
||||||
submit: () => void
|
submit: () => void
|
||||||
|
|
||||||
/** Whether to call `submit` on unmodified Enter */
|
|
||||||
aggressive?: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const BreakOrSubmit = HardBreak.extend<BreakOrSubmitOptions>({
|
export const BreakOrSubmit = HardBreak.extend<BreakOrSubmitOptions>({
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ export type EmptyOptions = object
|
|||||||
|
|
||||||
export type WelshmanExtensionOptions = {
|
export type WelshmanExtensionOptions = {
|
||||||
bolt11?: false
|
bolt11?: false
|
||||||
breakOrSubmit: ChildExtensionOptions<BreakOrSubmitOptions>
|
breakOrSubmit?: ChildExtensionOptions<BreakOrSubmitOptions>
|
||||||
codeInline?: ChildExtensionOptions<CodeInlineOptions>
|
codeInline?: ChildExtensionOptions<CodeInlineOptions>
|
||||||
codeBlock?: ChildExtensionOptions<CodeBlockOptions>
|
codeBlock?: ChildExtensionOptions<CodeBlockOptions>
|
||||||
document?: false
|
document?: false
|
||||||
|
|||||||
Reference in New Issue
Block a user