@welshman/editor 0.0.5 → 0.0.7

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.
@@ -7,6 +7,13 @@ export const BreakOrSubmit = HardBreak.extend({
7
7
  this.options.submit();
8
8
  return true;
9
9
  },
10
+ "Enter": () => {
11
+ if (this.options.aggressive) {
12
+ this.options.submit();
13
+ return true;
14
+ }
15
+ return false;
16
+ },
10
17
  };
11
18
  },
12
19
  });
@@ -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: ChildExtensionOptions<BreakOrSubmitOptions>;
17
+ breakOrSubmit?: ChildExtensionOptions<BreakOrSubmitOptions>;
18
18
  codeInline?: ChildExtensionOptions<CodeInlineOptions>;
19
19
  codeBlock?: ChildExtensionOptions<CodeBlockOptions>;
20
20
  document?: false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@welshman/editor",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "scripts": {
5
5
  "pub": "npm run check && npm run build && npm publish",
6
6
  "fix": "",