lakelib 0.2.5 → 0.3.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 +5 -5
- package/dist/lake.css +433 -398
- package/dist/lake.min.js +41 -56
- package/dist/lake.min.js.map +1 -1
- package/lib/css/index.d.ts +1 -11
- package/lib/editor.d.ts +1 -1
- package/lib/i18n/en-US/index.d.ts +26 -0
- package/lib/i18n/ja/index.d.ts +26 -0
- package/lib/i18n/ko/index.d.ts +26 -0
- package/lib/i18n/types.d.ts +200 -4
- package/lib/i18n/zh-CN/index.d.ts +26 -0
- package/lib/index.d.ts +8 -8
- package/lib/lake.css +182 -147
- package/lib/lake.js +5494 -4280
- package/lib/lake.js.map +1 -1
- package/lib/managers/command.d.ts +4 -4
- package/lib/managers/selection.d.ts +6 -10
- package/lib/operations/insert-block.d.ts +3 -0
- package/lib/operations/insert-contents.d.ts +4 -0
- package/lib/operations/split-block.d.ts +1 -1
- package/lib/operations/split-marks.d.ts +1 -1
- package/lib/plugins/align.d.ts +1 -1
- package/lib/plugins/arrow-keys.d.ts +1 -1
- package/lib/plugins/backspace-key.d.ts +1 -1
- package/lib/plugins/block-quote.d.ts +1 -1
- package/lib/plugins/bold.d.ts +1 -1
- package/lib/plugins/code-block/code-block-box.d.ts +4 -0
- package/lib/plugins/code-block/index.d.ts +5 -0
- package/lib/plugins/code.d.ts +1 -1
- package/lib/plugins/copy.d.ts +1 -1
- package/lib/plugins/cut.d.ts +1 -1
- package/lib/plugins/delete-key.d.ts +1 -1
- package/lib/plugins/drop.d.ts +1 -1
- package/lib/plugins/emoji/emoji-box.d.ts +4 -0
- package/lib/plugins/emoji/index.d.ts +5 -0
- package/lib/plugins/enter-key.d.ts +1 -1
- package/lib/plugins/equation/equation-box.d.ts +4 -0
- package/lib/plugins/equation/index.d.ts +5 -0
- package/lib/plugins/escape-key.d.ts +1 -1
- package/lib/plugins/file/file-box.d.ts +4 -0
- package/lib/plugins/file/index.d.ts +5 -0
- package/lib/plugins/font-color.d.ts +1 -1
- package/lib/plugins/font-family.d.ts +1 -1
- package/lib/plugins/font-size.d.ts +1 -1
- package/lib/plugins/format-painter.d.ts +1 -1
- package/lib/plugins/heading.d.ts +1 -1
- package/lib/plugins/highlight.d.ts +1 -1
- package/lib/plugins/hr/hr-box.d.ts +4 -0
- package/lib/plugins/hr/index.d.ts +5 -0
- package/lib/{boxes/image.d.ts → plugins/image/image-box.d.ts} +2 -1
- package/lib/plugins/image/index.d.ts +5 -0
- package/lib/plugins/indent.d.ts +1 -1
- package/lib/plugins/italic.d.ts +1 -1
- package/lib/plugins/{link.d.ts → link/index.d.ts} +1 -1
- package/lib/plugins/link/insert-link.d.ts +3 -0
- package/lib/{ui → plugins/link}/link-popup.d.ts +3 -2
- package/lib/plugins/list.d.ts +1 -1
- package/lib/plugins/markdown.d.ts +1 -1
- package/lib/plugins/mention/index.d.ts +5 -0
- package/lib/plugins/mention/mention-box.d.ts +4 -0
- package/lib/{ui → plugins/mention}/mention-menu.d.ts +4 -3
- package/lib/plugins/paste.d.ts +1 -1
- package/lib/plugins/redo.d.ts +1 -1
- package/lib/plugins/remove-format.d.ts +1 -1
- package/lib/plugins/select-all.d.ts +1 -1
- package/lib/plugins/shift-enter-key.d.ts +1 -1
- package/lib/plugins/{mention.d.ts → slash/index.d.ts} +1 -1
- package/lib/{config → plugins/slash}/slash-items.d.ts +1 -1
- package/lib/{ui → plugins/slash}/slash-menu.d.ts +5 -4
- package/lib/{types/slash.d.ts → plugins/slash/types.d.ts} +2 -2
- package/lib/plugins/special-character.d.ts +1 -1
- package/lib/plugins/strikethrough.d.ts +1 -1
- package/lib/plugins/subscript.d.ts +1 -1
- package/lib/plugins/superscript.d.ts +1 -1
- package/lib/plugins/tab-key.d.ts +1 -1
- package/lib/plugins/table/delete-column.d.ts +2 -0
- package/lib/plugins/table/delete-row.d.ts +2 -0
- package/lib/plugins/table/delete-table.d.ts +2 -0
- package/lib/plugins/{slash.d.ts → table/index.d.ts} +2 -1
- package/lib/plugins/table/insert-column.d.ts +4 -0
- package/lib/plugins/table/insert-row.d.ts +4 -0
- package/lib/plugins/table/insert-table.d.ts +3 -0
- package/lib/plugins/table/merge-cells.d.ts +3 -0
- package/lib/plugins/table/split-cell.d.ts +3 -0
- package/lib/plugins/table/utils.d.ts +6 -0
- package/lib/plugins/underline.d.ts +1 -1
- package/lib/plugins/undo.d.ts +1 -1
- package/lib/plugins/unlink.d.ts +1 -1
- package/lib/plugins/video/index.d.ts +5 -0
- package/lib/plugins/video/video-box.d.ts +4 -0
- package/lib/storage/editors.d.ts +1 -1
- package/lib/types/corner-toolbar.d.ts +7 -0
- package/lib/types/dropdown.d.ts +1 -0
- package/lib/types/native.d.ts +0 -8
- package/lib/types/node.d.ts +12 -0
- package/lib/types/object.d.ts +0 -24
- package/lib/types/selection.d.ts +14 -0
- package/lib/types/toolbar.d.ts +5 -5
- package/lib/ui/corner-toolbar.d.ts +18 -0
- package/lib/ui/floating-toolbar.d.ts +1 -1
- package/lib/ui/resizer.d.ts +0 -2
- package/lib/ui/toolbar.d.ts +2 -2
- package/lib/utils/indent-block.d.ts +2 -0
- package/lib/utils/remove-empty-marks.d.ts +2 -0
- package/lib/utils/unsafe-template.d.ts +1 -0
- package/lib/utils/visible-info.d.ts +10 -0
- package/package.json +15 -14
- package/lib/boxes/code-block.d.ts +0 -3
- package/lib/boxes/emoji.d.ts +0 -3
- package/lib/boxes/equation.d.ts +0 -3
- package/lib/boxes/file.d.ts +0 -3
- package/lib/boxes/hr.d.ts +0 -3
- package/lib/boxes/mention.d.ts +0 -3
- package/lib/boxes/video.d.ts +0 -3
- package/lib/operations/fix-list.d.ts +0 -2
- package/lib/operations/insert-fragment.d.ts +0 -3
- package/lib/operations/insert-link.d.ts +0 -3
- package/lib/operations/insert-node.d.ts +0 -3
- package/lib/plugins/code-block.d.ts +0 -3
- package/lib/plugins/emoji.d.ts +0 -3
- package/lib/plugins/equation.d.ts +0 -3
- package/lib/plugins/file.d.ts +0 -3
- package/lib/plugins/hr.d.ts +0 -3
- package/lib/plugins/image.d.ts +0 -3
- package/lib/plugins/video.d.ts +0 -3
- package/lib/utils/index.d.ts +0 -33
- package/lib/utils/is-visible.d.ts +0 -8
- package/lib/utils/safe-template.d.ts +0 -1
- package/lib/utils/set-block-indent.d.ts +0 -2
- /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
|
|
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.
|
|
10
10
|
|
|
11
11
|
[Examples](https://lakejs.org/examples/) · [Getting started](https://lakejs.org/guide/) · [Reference](https://lakejs.org/reference/)
|
|
12
12
|
|
|
13
13
|
## Development
|
|
14
14
|
|
|
15
|
-
|
|
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
|
|
26
|
+
You can now visit `http://localhost:8080/examples/` to try the demos in your local environment.
|
|
27
27
|
|
|
28
|
-
##
|
|
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
|
|
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.
|
|
31
31
|
|
|
32
32
|
## License
|
|
33
33
|
|