@meowdown/core 0.75.2 → 0.77.0

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.
package/README.md CHANGED
@@ -44,35 +44,35 @@ const markdown = docToMarkdown(editor.state.doc)
44
44
  the literal Markdown delimiters around the selection; heading shortcuts toggle
45
45
  the current block to that level (or back to a paragraph).
46
46
 
47
- | Key | Action | Markdown |
48
- | ---------------------- | --------------------------------------------------------- | ------------------- |
49
- | `Mod-B` | Bold | `**bold**` |
50
- | `Mod-I` | Italic | `*italic*` |
51
- | `Mod-E` | Inline code | `` `code` `` |
52
- | `Mod-Shift-X` | Strikethrough | `~~strikethrough~~` |
53
- | `Mod-Shift-H` | Highlight | `==highlight==` |
54
- | `Mod-K` | Link | `[text](url)` |
55
- | `Mod-Shift-K` | Insert a wikilink | `[[target]]` |
56
- | `Mod-1` | Heading 1 | `# heading` |
57
- | `Mod-2` | Heading 2 | `## heading` |
58
- | `Mod-3` | Heading 3 | `### heading` |
59
- | `Mod-4` | Heading 4 | `#### heading` |
60
- | `Mod-5` | Heading 5 | `##### heading` |
61
- | `Mod-6` | Heading 6 | `###### heading` |
62
- | `Mod-.` | Fold or unfold a bullet | |
63
- | `Shift-Enter` | Insert a line break | |
64
- | `Mod-Enter` | Follow the link under the caret, or cycle a checkbox task | `- [ ]` / `- [x]` |
65
- | `Mod-Shift-Enter` | Cycle a circle checkbox task | `+ [ ]` / `+ [x]` |
66
- | `Mod-Shift-7` | Ordered list | `1. item` |
67
- | `Mod-Shift-8` | Bullet list | `- item` |
68
- | `Mod-Shift-9` | Checkbox task list | `- [ ] item` |
69
- | `Alt-ArrowUp` | Move the block or list item up | |
70
- | `Alt-ArrowDown` | Move the block or list item down | |
71
- | `Meta-ArrowUp` | Move the caret to the document start | |
72
- | `Meta-ArrowDown` | Move the caret to the document end | |
73
- | `Shift-Meta-ArrowUp` | Select to the document start | |
74
- | `Shift-Meta-ArrowDown` | Select to the document end | |
75
- | `Escape` | Collapse the selection | |
47
+ | Key | Action | Markdown |
48
+ | --------------------- | --------------------------------------------------------- | ------------------- |
49
+ | `Mod-B` | Bold | `**bold**` |
50
+ | `Mod-I` | Italic | `*italic*` |
51
+ | `Mod-E` | Inline code | `` `code` `` |
52
+ | `Mod-Shift-X` | Strikethrough | `~~strikethrough~~` |
53
+ | `Mod-Shift-H` | Highlight | `==highlight==` |
54
+ | `Mod-K` | Link | `[text](url)` |
55
+ | `Mod-Shift-K` | Insert a wikilink | `[[target]]` |
56
+ | `Mod-Alt-1` | Heading 1 | `# heading` |
57
+ | `Mod-Alt-2` | Heading 2 | `## heading` |
58
+ | `Mod-Alt-3` | Heading 3 | `### heading` |
59
+ | `Mod-Alt-4` | Heading 4 | `#### heading` |
60
+ | `Mod-Alt-5` | Heading 5 | `##### heading` |
61
+ | `Mod-Alt-6` | Heading 6 | `###### heading` |
62
+ | `Mod-.` | Fold or unfold a bullet | |
63
+ | `Shift-Enter` | Insert a line break | |
64
+ | `Mod-Enter` | Follow the link under the caret, or cycle a checkbox task | `- [ ]` / `- [x]` |
65
+ | `Mod-Shift-Enter` | Cycle a circle checkbox task | `+ [ ]` / `+ [x]` |
66
+ | `Mod-Shift-7` | Ordered list | `1. item` |
67
+ | `Mod-Shift-8` | Bullet list | `- item` |
68
+ | `Mod-Shift-9` | Checkbox task list | `- [ ] item` |
69
+ | `Alt-ArrowUp` | Move the block or list item up | |
70
+ | `Alt-ArrowDown` | Move the block or list item down | |
71
+ | `Mod-ArrowUp` | Move the caret to the document start | |
72
+ | `Mod-ArrowDown` | Move the caret to the document end | |
73
+ | `Mod-Shift-ArrowUp` | Select to the document start | |
74
+ | `Mod-Shift-ArrowDown` | Select to the document end | |
75
+ | `Escape` | Collapse the selection | |
76
76
 
77
77
  `Mod-Shift-7/8/9` wrap the current block, convert a list of a different kind in
78
78
  place, and unwrap a list of the same kind back to a paragraph. `Alt-ArrowUp` /
package/dist/index.d.ts CHANGED
@@ -1446,12 +1446,12 @@ export declare const EDITOR_KEY_BINDINGS: {
1446
1446
  readonly 'Mod-Shift-h': "Highlight";
1447
1447
  readonly 'Mod-k': "Link";
1448
1448
  readonly 'Mod-Shift-k': "Insert a wikilink";
1449
- readonly 'Mod-1': "Heading 1";
1450
- readonly 'Mod-2': "Heading 2";
1451
- readonly 'Mod-3': "Heading 3";
1452
- readonly 'Mod-4': "Heading 4";
1453
- readonly 'Mod-5': "Heading 5";
1454
- readonly 'Mod-6': "Heading 6";
1449
+ readonly 'Mod-Alt-1': "Heading 1";
1450
+ readonly 'Mod-Alt-2': "Heading 2";
1451
+ readonly 'Mod-Alt-3': "Heading 3";
1452
+ readonly 'Mod-Alt-4': "Heading 4";
1453
+ readonly 'Mod-Alt-5': "Heading 5";
1454
+ readonly 'Mod-Alt-6': "Heading 6";
1455
1455
  readonly 'Mod-.': "Fold or unfold a bullet";
1456
1456
  readonly 'Shift-Enter': "Insert a line break, or leave a code block from its end";
1457
1457
  readonly 'Mod-Enter': "Follow the link under the caret, or cycle a checkbox task";
@@ -1461,10 +1461,10 @@ export declare const EDITOR_KEY_BINDINGS: {
1461
1461
  readonly 'Mod-Shift-9': "Checkbox task list";
1462
1462
  readonly 'Alt-ArrowUp': "Move the block or list item up";
1463
1463
  readonly 'Alt-ArrowDown': "Move the block or list item down";
1464
- readonly 'Meta-ArrowUp': "Move the caret to the document start";
1465
- readonly 'Meta-ArrowDown': "Move the caret to the document end";
1466
- readonly 'Shift-Meta-ArrowUp': "Select to the document start";
1467
- readonly 'Shift-Meta-ArrowDown': "Select to the document end";
1464
+ readonly 'Mod-ArrowUp': "Move the caret to the document start";
1465
+ readonly 'Mod-ArrowDown': "Move the caret to the document end";
1466
+ readonly 'Mod-Shift-ArrowUp': "Select to the document start";
1467
+ readonly 'Mod-Shift-ArrowDown': "Select to the document end";
1468
1468
  readonly Escape: "Collapse the selection";
1469
1469
  };
1470
1470
  //#endregion
package/dist/index.js CHANGED
@@ -1086,12 +1086,12 @@ const backspaceUnsetHeading = (state, dispatch, view) => {
1086
1086
  };
1087
1087
  function defineHeadingKeymap() {
1088
1088
  return defineKeymap({
1089
- "Mod-1": toggleHeading(1),
1090
- "Mod-2": toggleHeading(2),
1091
- "Mod-3": toggleHeading(3),
1092
- "Mod-4": toggleHeading(4),
1093
- "Mod-5": toggleHeading(5),
1094
- "Mod-6": toggleHeading(6),
1089
+ "Mod-Alt-1": toggleHeading(1),
1090
+ "Mod-Alt-2": toggleHeading(2),
1091
+ "Mod-Alt-3": toggleHeading(3),
1092
+ "Mod-Alt-4": toggleHeading(4),
1093
+ "Mod-Alt-5": toggleHeading(5),
1094
+ "Mod-Alt-6": toggleHeading(6),
1095
1095
  Backspace: backspaceUnsetHeading
1096
1096
  });
1097
1097
  }
@@ -7428,7 +7428,7 @@ function selectDocBoundary(direction, extend) {
7428
7428
  };
7429
7429
  }
7430
7430
  /**
7431
- * Binds the macOS document-boundary motions (`Meta-ArrowUp` / `Meta-ArrowDown`
7431
+ * Binds the document-boundary motions (`Mod-ArrowUp` / `Mod-ArrowDown`
7432
7432
  * move the caret to the document start / end; the Shift variants extend the
7433
7433
  * selection there). Bound explicitly instead of relying on the browser's
7434
7434
  * native handling: WebKit gives up the native move when the document starts
@@ -7438,10 +7438,10 @@ function selectDocBoundary(direction, extend) {
7438
7438
  */
7439
7439
  function defineSelectDocBoundary() {
7440
7440
  return defineKeymap({
7441
- "Meta-ArrowUp": selectDocBoundary(-1, false),
7442
- "Meta-ArrowDown": selectDocBoundary(1, false),
7443
- "Shift-Meta-ArrowUp": selectDocBoundary(-1, true),
7444
- "Shift-Meta-ArrowDown": selectDocBoundary(1, true)
7441
+ "Mod-ArrowUp": selectDocBoundary(-1, false),
7442
+ "Mod-ArrowDown": selectDocBoundary(1, false),
7443
+ "Mod-Shift-ArrowUp": selectDocBoundary(-1, true),
7444
+ "Mod-Shift-ArrowDown": selectDocBoundary(1, true)
7445
7445
  });
7446
7446
  }
7447
7447
 
@@ -8573,12 +8573,12 @@ const EDITOR_KEY_BINDINGS = {
8573
8573
  "Mod-Shift-h": "Highlight",
8574
8574
  "Mod-k": "Link",
8575
8575
  "Mod-Shift-k": "Insert a wikilink",
8576
- "Mod-1": "Heading 1",
8577
- "Mod-2": "Heading 2",
8578
- "Mod-3": "Heading 3",
8579
- "Mod-4": "Heading 4",
8580
- "Mod-5": "Heading 5",
8581
- "Mod-6": "Heading 6",
8576
+ "Mod-Alt-1": "Heading 1",
8577
+ "Mod-Alt-2": "Heading 2",
8578
+ "Mod-Alt-3": "Heading 3",
8579
+ "Mod-Alt-4": "Heading 4",
8580
+ "Mod-Alt-5": "Heading 5",
8581
+ "Mod-Alt-6": "Heading 6",
8582
8582
  "Mod-.": "Fold or unfold a bullet",
8583
8583
  "Shift-Enter": "Insert a line break, or leave a code block from its end",
8584
8584
  "Mod-Enter": "Follow the link under the caret, or cycle a checkbox task",
@@ -8588,10 +8588,10 @@ const EDITOR_KEY_BINDINGS = {
8588
8588
  "Mod-Shift-9": "Checkbox task list",
8589
8589
  "Alt-ArrowUp": "Move the block or list item up",
8590
8590
  "Alt-ArrowDown": "Move the block or list item down",
8591
- "Meta-ArrowUp": "Move the caret to the document start",
8592
- "Meta-ArrowDown": "Move the caret to the document end",
8593
- "Shift-Meta-ArrowUp": "Select to the document start",
8594
- "Shift-Meta-ArrowDown": "Select to the document end",
8591
+ "Mod-ArrowUp": "Move the caret to the document start",
8592
+ "Mod-ArrowDown": "Move the caret to the document end",
8593
+ "Mod-Shift-ArrowUp": "Select to the document start",
8594
+ "Mod-Shift-ArrowDown": "Select to the document end",
8595
8595
  Escape: "Collapse the selection"
8596
8596
  };
8597
8597
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meowdown/core",
3
3
  "type": "module",
4
- "version": "0.75.2",
4
+ "version": "0.77.0",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",