lakelib 0.2.6 → 0.3.1

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 (126) hide show
  1. package/README.md +6 -6
  2. package/dist/lake.css +377 -363
  3. package/dist/lake.min.js +40 -40
  4. package/dist/lake.min.js.map +1 -1
  5. package/lib/css/index.d.ts +0 -11
  6. package/lib/editor.d.ts +19 -19
  7. package/lib/i18n/en-US/index.d.ts +24 -0
  8. package/lib/i18n/ja/index.d.ts +24 -0
  9. package/lib/i18n/ko/index.d.ts +24 -0
  10. package/lib/i18n/types.d.ts +182 -2
  11. package/lib/i18n/zh-CN/index.d.ts +24 -0
  12. package/lib/index.d.ts +8 -8
  13. package/lib/lake.css +126 -112
  14. package/lib/lake.js +5709 -4679
  15. package/lib/lake.js.map +1 -1
  16. package/lib/managers/command.d.ts +4 -4
  17. package/lib/managers/selection.d.ts +6 -10
  18. package/lib/operations/insert-block.d.ts +3 -0
  19. package/lib/operations/insert-contents.d.ts +4 -0
  20. package/lib/operations/split-block.d.ts +1 -1
  21. package/lib/operations/split-marks.d.ts +1 -1
  22. package/lib/plugins/align.d.ts +1 -1
  23. package/lib/plugins/arrow-keys.d.ts +1 -1
  24. package/lib/plugins/backspace-key.d.ts +1 -1
  25. package/lib/plugins/block-quote.d.ts +1 -1
  26. package/lib/plugins/bold.d.ts +1 -1
  27. package/lib/plugins/code-block/code-block-box.d.ts +4 -0
  28. package/lib/plugins/code-block/index.d.ts +5 -0
  29. package/lib/plugins/code.d.ts +1 -1
  30. package/lib/plugins/copy.d.ts +1 -1
  31. package/lib/plugins/cut.d.ts +1 -1
  32. package/lib/plugins/delete-key.d.ts +1 -1
  33. package/lib/plugins/drop.d.ts +1 -1
  34. package/lib/plugins/emoji/emoji-box.d.ts +4 -0
  35. package/lib/plugins/emoji/index.d.ts +5 -0
  36. package/lib/plugins/enter-key.d.ts +1 -1
  37. package/lib/plugins/equation/equation-box.d.ts +4 -0
  38. package/lib/plugins/equation/index.d.ts +5 -0
  39. package/lib/plugins/escape-key.d.ts +1 -1
  40. package/lib/plugins/file/file-box.d.ts +4 -0
  41. package/lib/plugins/file/index.d.ts +5 -0
  42. package/lib/plugins/font-color.d.ts +1 -1
  43. package/lib/plugins/font-family.d.ts +1 -1
  44. package/lib/plugins/font-size.d.ts +1 -1
  45. package/lib/plugins/format-painter.d.ts +1 -1
  46. package/lib/plugins/heading.d.ts +1 -1
  47. package/lib/plugins/highlight.d.ts +1 -1
  48. package/lib/plugins/hr/hr-box.d.ts +4 -0
  49. package/lib/plugins/hr/index.d.ts +5 -0
  50. package/lib/{boxes/image.d.ts → plugins/image/image-box.d.ts} +2 -1
  51. package/lib/plugins/image/index.d.ts +5 -0
  52. package/lib/plugins/indent.d.ts +1 -1
  53. package/lib/plugins/italic.d.ts +1 -1
  54. package/lib/plugins/{link.d.ts → link/index.d.ts} +1 -1
  55. package/lib/plugins/link/insert-link.d.ts +3 -0
  56. package/lib/{ui → plugins/link}/link-popup.d.ts +3 -2
  57. package/lib/plugins/list.d.ts +1 -1
  58. package/lib/plugins/markdown.d.ts +1 -1
  59. package/lib/plugins/mention/index.d.ts +5 -0
  60. package/lib/plugins/mention/mention-box.d.ts +4 -0
  61. package/lib/{ui → plugins/mention}/mention-menu.d.ts +4 -3
  62. package/lib/plugins/paste.d.ts +1 -1
  63. package/lib/plugins/redo.d.ts +1 -1
  64. package/lib/plugins/remove-format.d.ts +1 -1
  65. package/lib/plugins/select-all.d.ts +1 -1
  66. package/lib/plugins/shift-enter-key.d.ts +1 -1
  67. package/lib/plugins/{mention.d.ts → slash/index.d.ts} +1 -1
  68. package/lib/{config → plugins/slash}/slash-items.d.ts +1 -1
  69. package/lib/{ui → plugins/slash}/slash-menu.d.ts +5 -4
  70. package/lib/{types/slash.d.ts → plugins/slash/types.d.ts} +2 -2
  71. package/lib/plugins/special-character.d.ts +1 -1
  72. package/lib/plugins/strikethrough.d.ts +1 -1
  73. package/lib/plugins/subscript.d.ts +1 -1
  74. package/lib/plugins/superscript.d.ts +1 -1
  75. package/lib/plugins/tab-key.d.ts +1 -1
  76. package/lib/plugins/table/delete-column.d.ts +2 -0
  77. package/lib/plugins/table/delete-row.d.ts +2 -0
  78. package/lib/plugins/table/delete-table.d.ts +2 -0
  79. package/lib/plugins/{slash.d.ts → table/index.d.ts} +2 -1
  80. package/lib/plugins/table/insert-column.d.ts +4 -0
  81. package/lib/plugins/table/insert-row.d.ts +4 -0
  82. package/lib/plugins/table/insert-table.d.ts +3 -0
  83. package/lib/plugins/table/merge-cells.d.ts +3 -0
  84. package/lib/plugins/table/split-cell.d.ts +3 -0
  85. package/lib/plugins/table/utils.d.ts +6 -0
  86. package/lib/plugins/underline.d.ts +1 -1
  87. package/lib/plugins/undo.d.ts +1 -1
  88. package/lib/plugins/unlink.d.ts +1 -1
  89. package/lib/plugins/video/index.d.ts +5 -0
  90. package/lib/plugins/video/video-box.d.ts +4 -0
  91. package/lib/storage/editors.d.ts +1 -1
  92. package/lib/types/dropdown.d.ts +1 -0
  93. package/lib/types/native.d.ts +0 -8
  94. package/lib/types/node.d.ts +12 -0
  95. package/lib/types/object.d.ts +0 -24
  96. package/lib/types/selection.d.ts +14 -0
  97. package/lib/types/toolbar.d.ts +5 -5
  98. package/lib/ui/toolbar.d.ts +2 -2
  99. package/lib/utils/indent-block.d.ts +2 -0
  100. package/lib/utils/remove-empty-marks.d.ts +2 -0
  101. package/lib/utils/unsafe-template.d.ts +1 -0
  102. package/lib/utils/visible-info.d.ts +10 -0
  103. package/package.json +19 -18
  104. package/lib/boxes/code-block.d.ts +0 -3
  105. package/lib/boxes/emoji.d.ts +0 -3
  106. package/lib/boxes/equation.d.ts +0 -3
  107. package/lib/boxes/file.d.ts +0 -3
  108. package/lib/boxes/hr.d.ts +0 -3
  109. package/lib/boxes/mention.d.ts +0 -3
  110. package/lib/boxes/video.d.ts +0 -3
  111. package/lib/operations/fix-list.d.ts +0 -2
  112. package/lib/operations/insert-fragment.d.ts +0 -3
  113. package/lib/operations/insert-link.d.ts +0 -3
  114. package/lib/operations/insert-node.d.ts +0 -3
  115. package/lib/plugins/code-block.d.ts +0 -3
  116. package/lib/plugins/emoji.d.ts +0 -3
  117. package/lib/plugins/equation.d.ts +0 -3
  118. package/lib/plugins/file.d.ts +0 -3
  119. package/lib/plugins/hr.d.ts +0 -3
  120. package/lib/plugins/image.d.ts +0 -3
  121. package/lib/plugins/video.d.ts +0 -3
  122. package/lib/utils/index.d.ts +0 -33
  123. package/lib/utils/is-visible.d.ts +0 -8
  124. package/lib/utils/safe-template.d.ts +0 -1
  125. package/lib/utils/set-block-indent.d.ts +0 -2
  126. /package/lib/{types/mention.d.ts → plugins/mention/types.d.ts} +0 -0
package/README.md CHANGED
@@ -6,13 +6,13 @@
6
6
 
7
7
  ---
8
8
 
9
- Lake is a browser-based rich text editor designed for creating content like blogs, comments, and emails. It strikes a balance between being feature-rich and lightweight, offering an easy-to-use programming interface for easy customization and extension.
9
+ Lake is a browser-based rich text editor designed for creating content such as blogs, comments, and emails. It tries to keep a balance between being feature-rich and lightweight, offering an easy-to-use programming interface for further extension.
10
10
 
11
- [Examples](https://lakejs.org/examples/) · [Getting started](https://lakejs.org/guide/) · [Reference](https://lakejs.org/reference/)
11
+ [Examples](https://lakejs.org/examples/) · [Getting started](https://lakejs.org/guide/getting-started) · [Reference](https://lakejs.org/reference/)
12
12
 
13
13
  ## Development
14
14
 
15
- For local development, download the source code and run a local server with an HTTP service and real-time bundling.
15
+ If you want to customize Lake, download the source code and run a local server that includes an HTTP service and real-time bundling.
16
16
 
17
17
  ``` bash
18
18
  # Clone the repository
@@ -23,11 +23,11 @@ pnpm install
23
23
  pnpm dev
24
24
  ```
25
25
 
26
- You can now view the demonstration by visiting `http://localhost:8080/examples/`.
26
+ You can now visit `http://localhost:8080/examples/` to try the demos in your local environment.
27
27
 
28
- ## Running tests
28
+ ## Test
29
29
 
30
- Lake depends on a lot of browser APIs, so running its test cases needs a real browser environment. You can run the tests visibly by visiting `http://localhost:8080/tests/`, or execute the `pnpm test` command to run them in headless mode.
30
+ Lake depends on many browser APIs, so running its test cases needs a real browser environment. You can run the tests visibly by visiting `http://localhost:8080/tests/`, or execute the `pnpm test` command to run them in headless mode.
31
31
 
32
32
  ## License
33
33