@krainovsd/markdown-editor 0.0.3 → 0.0.4

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.
Files changed (47) hide show
  1. package/README.md +21 -1
  2. package/lib/cjs/editor-qKPDa91b.js +2 -0
  3. package/lib/cjs/editor-qKPDa91b.js.map +1 -0
  4. package/lib/cjs/index.js +2 -0
  5. package/lib/cjs/index.js.map +1 -0
  6. package/lib/cjs/markdown_plugin-IXFRDWyN.js +2 -0
  7. package/lib/cjs/markdown_plugin-IXFRDWyN.js.map +1 -0
  8. package/lib/cjs/vendor_vim-BHa51_r7.js +2 -0
  9. package/lib/cjs/vendor_vim-BHa51_r7.js.map +1 -0
  10. package/lib/cjs/vendor_y.next-CVyX1ZQB.js +2 -0
  11. package/lib/cjs/vendor_y.next-CVyX1ZQB.js.map +1 -0
  12. package/lib/cjs/vendor_y.websocket-Dr9ojjFR.js +2 -0
  13. package/lib/cjs/vendor_y.websocket-Dr9ojjFR.js.map +1 -0
  14. package/lib/cjs/vendor_yjs-DXWp84x5.js +2 -0
  15. package/lib/cjs/vendor_yjs-DXWp84x5.js.map +1 -0
  16. package/lib/esm/editor-CLyV23xt.js +2 -0
  17. package/lib/esm/editor-CLyV23xt.js.map +1 -0
  18. package/lib/esm/index.js +1 -1
  19. package/lib/esm/index.js.map +1 -1
  20. package/lib/esm/markdown_plugin-DdBeaig8.js +2 -0
  21. package/lib/esm/markdown_plugin-DdBeaig8.js.map +1 -0
  22. package/lib/esm/vendor_vim-PF2jWG0J.js +2 -0
  23. package/lib/esm/vendor_vim-PF2jWG0J.js.map +1 -0
  24. package/lib/esm/vendor_y.next-B9hhKe5T.js +2 -0
  25. package/lib/esm/vendor_y.next-B9hhKe5T.js.map +1 -0
  26. package/lib/esm/vendor_y.websocket-gIpX3Cmo.js +2 -0
  27. package/lib/esm/vendor_y.websocket-gIpX3Cmo.js.map +1 -0
  28. package/lib/esm/vendor_yjs-otxZW90b.js +2 -0
  29. package/lib/esm/vendor_yjs-otxZW90b.js.map +1 -0
  30. package/package.json +5 -4
  31. package/tmp/app/helpers/common-test.d.ts +1 -1
  32. package/tmp/extensions/index.d.ts +2 -2
  33. package/tmp/extensions/init-extensions.d.ts +2 -2
  34. package/tmp/extensions/keymaps/init-key-map.d.ts +17 -3
  35. package/tmp/extensions/markdown/image/image-widget.d.ts +9 -10
  36. package/tmp/extensions/markdown/markdown-parser.d.ts +2 -0
  37. package/tmp/extensions/settings/init-settings.d.ts +1 -1
  38. package/tmp/extensions/theme/theme-types.d.ts +4 -1
  39. package/tmp/index.d.ts +1 -1
  40. package/tmp/lib/utils/index.d.ts +1 -0
  41. package/tmp/lib/utils/random-string.d.ts +1 -0
  42. package/tmp/module/Editor/Editor.d.ts +6 -5
  43. package/tmp/module/Editor/lib/init-editor-provider.d.ts +3 -4
  44. package/tmp/module/Editor/lib/init-editor-state.d.ts +1 -1
  45. package/tmp/module/Editor/lib/init-editor.d.ts +2 -2
  46. package/lib/cjs/bundle.cjs +0 -2
  47. package/lib/cjs/bundle.cjs.map +0 -1
package/README.md CHANGED
@@ -74,6 +74,20 @@ Type: `LanguageDescription[] | undefined`
74
74
 
75
75
  List of languages for markdown code section. Provided by [@codemirror/language-data](https://github.com/codemirror/language-data)
76
76
 
77
+ ### keyMaps
78
+
79
+ Type: `KeyBinding[]`
80
+
81
+ Array of custom key map combination. Mod is Cmd on mac and Ctrl on other platforms. [More information](https://codemirror.net/docs/ref/#view.keymap)
82
+
83
+ ### defaultKeyMaps
84
+
85
+ Type: `object`<br>
86
+ Properties:
87
+ - theme (`boolean`) - switch theme `Mod-Alt-a`
88
+ - vim (`boolean`) - switch vim mode `Mod-Alt-v`
89
+
90
+
77
91
  ### onBlur
78
92
 
79
93
  Type: `((state: EditorState) => void) | undefined`
@@ -97,4 +111,10 @@ Execute by change text in editor.
97
111
  Type: `((view: EditorView) => boolean) | undefined`
98
112
 
99
113
  Execute by keydown event in root node of editor. <br>
100
- **Warning!!!** Line break will be canceled If set `false` by return of function. Only `shift + Enter` will be worked.
114
+ **Warning!!!** Line break will be canceled If set `true` by return of function. Only `shift + Enter` will be worked.
115
+
116
+ ### onEscape
117
+
118
+ Type: `((view: EditorView) => boolean) | undefined`
119
+
120
+ Execute by keydown event in root node of editor.