@welshman/editor 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,5 @@ import { type HardBreakOptions } from "@tiptap/extension-hard-break";
|
|
|
2
2
|
export interface BreakOrSubmitOptions extends HardBreakOptions {
|
|
3
3
|
/** Handler for when enter is pressed. */
|
|
4
4
|
submit: () => void;
|
|
5
|
-
/** Whether to call `submit` on unmodified Enter */
|
|
6
|
-
aggressive?: boolean;
|
|
7
5
|
}
|
|
8
6
|
export declare const BreakOrSubmit: import("@tiptap/core").Node<BreakOrSubmitOptions, any>;
|
|
@@ -14,7 +14,7 @@ export type ChildExtensionOptions<C = any, E = any> = false | {
|
|
|
14
14
|
export type EmptyOptions = object;
|
|
15
15
|
export type WelshmanExtensionOptions = {
|
|
16
16
|
bolt11?: false;
|
|
17
|
-
breakOrSubmit
|
|
17
|
+
breakOrSubmit?: ChildExtensionOptions<BreakOrSubmitOptions>;
|
|
18
18
|
codeInline?: ChildExtensionOptions<CodeInlineOptions>;
|
|
19
19
|
codeBlock?: ChildExtensionOptions<CodeBlockOptions>;
|
|
20
20
|
document?: false;
|