lakelib 0.0.2 → 0.0.3
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 +6 -6
- package/dist/codemirror.min.js +1 -1
- package/dist/lake.css +748 -298
- package/dist/lake.min.js +44 -45
- package/dist/lake.min.js.map +1 -0
- package/lib/lake.css +327 -298
- package/lib/lake.js +1909 -1252
- package/lib/lake.js.map +1 -0
- package/lib/types/boxes/code-block.d.ts +1 -1
- package/lib/types/config/menu-items.d.ts +9 -9
- package/lib/types/css/index.d.ts +3 -1
- package/lib/types/editor.d.ts +15 -7
- package/lib/types/i18n/en-US/index.d.ts +70 -0
- package/lib/types/i18n/index.d.ts +2 -0
- package/lib/types/i18n/ja/index.d.ts +70 -0
- package/lib/types/i18n/ko/index.d.ts +70 -0
- package/lib/types/i18n/types.d.ts +500 -0
- package/lib/types/i18n/zh-CN/index.d.ts +70 -0
- package/lib/types/index.d.ts +4 -2
- package/lib/types/managers/command.d.ts +15 -3
- package/lib/types/managers/plugin.d.ts +0 -1
- package/lib/types/managers/selection.d.ts +0 -1
- package/lib/types/models/nodes.d.ts +1 -0
- package/lib/types/types/dropdown.d.ts +16 -0
- package/lib/types/types/toolbar.d.ts +9 -21
- package/lib/types/ui/button.d.ts +17 -0
- package/lib/types/ui/dropdown.d.ts +23 -0
- package/lib/types/ui/link-popup.d.ts +10 -5
- package/lib/types/ui/toolbar.d.ts +2 -11
- package/lib/types/utils/index.d.ts +1 -0
- package/lib/types/utils/modifier-text.d.ts +1 -0
- package/package.json +46 -28
- package/dist/lake-all.css +0 -1331
- package/dist/lake-all.min.js +0 -84
- package/lib/types/codemirror.d.ts +0 -5
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Compressed copies of Lake files are available, you can download them from jsDeli
|
|
|
13
13
|
* jsDelivr: https://www.jsdelivr.com/package/npm/lakelib?path=dist&tab=files
|
|
14
14
|
* UNPKG: https://unpkg.com/browse/lakelib@latest/dist/
|
|
15
15
|
|
|
16
|
-
Note: `lake
|
|
16
|
+
Note: `lake.min.js` is not built with CodeMirror, so if you need the code block feature, addtioanaly including `codemirror.min.js` to your page is needed. But if you do not need it, there is no need to include external CodeMirror file. To find out more, take a look at the [IIFE example](https://github.com/lakejs/lake/blob/master/examples/iife.html) and [Rollup configuration](https://github.com/lakejs/lake/blob/master/rollup.config.mjs).
|
|
17
17
|
|
|
18
18
|
#### Downloading Lake using npm
|
|
19
19
|
|
|
@@ -28,8 +28,8 @@ npm install lakelib
|
|
|
28
28
|
First, add the following lines of code in the `<head>` of an HTML page.
|
|
29
29
|
|
|
30
30
|
```html
|
|
31
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lakelib@latest/dist/lake
|
|
32
|
-
<script src="https://cdn.jsdelivr.net/npm/lakelib@latest/dist/lake
|
|
31
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lakelib@latest/dist/lake.css" />
|
|
32
|
+
<script src="https://cdn.jsdelivr.net/npm/lakelib@latest/dist/lake.min.js"></script>
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
Then, in the HTML page add the following HTML code that will serve as a placeholder for an editor instance.
|
|
@@ -57,7 +57,7 @@ new Lake.Toolbar({
|
|
|
57
57
|
|
|
58
58
|
### Development
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
To build Lake or change source code, you need to download the repository and start a development server that contains an HTTP service and real-time bundling.
|
|
61
61
|
|
|
62
62
|
``` bash
|
|
63
63
|
# clone the repository
|
|
@@ -66,8 +66,8 @@ git clone https://github.com/lakejs/lake.git
|
|
|
66
66
|
cd lake
|
|
67
67
|
# install all dependencies
|
|
68
68
|
pnpm install
|
|
69
|
-
# build
|
|
70
|
-
pnpm
|
|
69
|
+
# build CodeMirror
|
|
70
|
+
pnpm codemirror
|
|
71
71
|
# start a local server
|
|
72
72
|
pnpm start
|
|
73
73
|
```
|