lakelib 0.1.15 → 0.1.16
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 +12 -2
- package/dist/lake.css +34 -4
- package/dist/lake.min.js +31 -31
- package/dist/lake.min.js.map +1 -1
- package/lib/lake.css +34 -4
- package/lib/lake.js +61 -23
- package/lib/lake.js.map +1 -1
- package/lib/types/editor.d.ts +3 -3
- package/lib/types/models/nodes.d.ts +2 -4
- package/lib/types/types/dropdown.d.ts +2 -1
- package/lib/types/utils/from-base64.d.ts +1 -0
- package/lib/types/utils/index.d.ts +2 -0
- package/lib/types/utils/to-base64.d.ts +1 -0
- package/package.json +17 -19
package/README.md
CHANGED
|
@@ -27,8 +27,18 @@ You can now view all the demos by visiting `http://localhost:8080/examples/`.
|
|
|
27
27
|
|
|
28
28
|
## Running tests
|
|
29
29
|
|
|
30
|
-
Lake depends on a lot of browser APIs and ao needs a real browser environment for running the test cases. You can run all tests visibly by visiting `http://localhost:8080/tests/`, or execute `pnpm test` command to run the tests in headless mode.
|
|
30
|
+
Lake depends on a lot of browser APIs and ao needs a real browser environment for running the test cases. You can run all tests visibly by visiting `http://localhost:8080/tests/`, or execute the `pnpm test` command to run the tests in headless mode.
|
|
31
31
|
|
|
32
32
|
## License
|
|
33
33
|
|
|
34
|
-
[MIT](https://github.com/lakejs/lake/blob/main/LICENSE)
|
|
34
|
+
Lake is released under the [MIT](https://github.com/lakejs/lake/blob/main/LICENSE) license. For the licenses of its dependencies, see the following table:
|
|
35
|
+
|
|
36
|
+
| Package | License |
|
|
37
|
+
| ------------- | ------------- |
|
|
38
|
+
| [codemirror](https://github.com/codemirror/dev) | MIT |
|
|
39
|
+
| [debounce](https://github.com/sindresorhus/debounce) | MIT |
|
|
40
|
+
| [eventemitter3](https://github.com/primus/eventemitter3) | MIT |
|
|
41
|
+
| [fast-deep-equal](https://github.com/epoberezkin/fast-deep-equal) | MIT |
|
|
42
|
+
| [photoswipe](https://github.com/dimsemenov/Photoswipe) | MIT |
|
|
43
|
+
| [tinykeys](https://github.com/jamiebuilds/tinykeys) | MIT |
|
|
44
|
+
| [typesafe-i18n](https://github.com/ivanhofer/typesafe-i18n) | MIT |
|
package/dist/lake.css
CHANGED
|
@@ -310,7 +310,8 @@ button.lake-primary-button.lake-button-hovered {
|
|
|
310
310
|
cursor: default;
|
|
311
311
|
}
|
|
312
312
|
.lake-dropdown.lake-list-dropdown button.lake-dropdown-title-hovered,
|
|
313
|
-
.lake-dropdown.lake-icon-dropdown button.lake-dropdown-title-hovered
|
|
313
|
+
.lake-dropdown.lake-icon-dropdown button.lake-dropdown-title-hovered,
|
|
314
|
+
.lake-dropdown.lake-character-dropdown button.lake-dropdown-title-hovered {
|
|
314
315
|
background-color: var(--background-hover-color);
|
|
315
316
|
}
|
|
316
317
|
.lake-dropdown button.lake-dropdown-title.lake-dropdown-title-no-down {
|
|
@@ -380,6 +381,10 @@ button.lake-primary-button.lake-button-hovered {
|
|
|
380
381
|
top: auto;
|
|
381
382
|
bottom: 30px;
|
|
382
383
|
}
|
|
384
|
+
.lake-dropdown .lake-dropdown-menu.lake-dropdown-menu-with-scroll {
|
|
385
|
+
overflow-y: scroll;
|
|
386
|
+
scrollbar-width: thin;
|
|
387
|
+
}
|
|
383
388
|
.lake-dropdown .lake-dropdown-menu li {
|
|
384
389
|
display: flex;
|
|
385
390
|
align-items: center;
|
|
@@ -446,6 +451,34 @@ button.lake-primary-button.lake-button-hovered {
|
|
|
446
451
|
.lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-text {
|
|
447
452
|
display: none;
|
|
448
453
|
}
|
|
454
|
+
/* character type */
|
|
455
|
+
.lake-dropdown .lake-character-dropdown-menu {
|
|
456
|
+
flex-wrap: wrap;
|
|
457
|
+
justify-content: center;
|
|
458
|
+
}
|
|
459
|
+
.lake-dropdown .lake-character-dropdown-menu li {
|
|
460
|
+
padding: 0;
|
|
461
|
+
border-radius: 2px;
|
|
462
|
+
}
|
|
463
|
+
.lake-dropdown .lake-character-dropdown-menu li.lake-dropdown-item-hovered {
|
|
464
|
+
background-color: var(--background-hover-color);
|
|
465
|
+
}
|
|
466
|
+
.lake-dropdown .lake-character-dropdown-menu li.lake-dropdown-item-selected {
|
|
467
|
+
background-color: var(--background-active-color);
|
|
468
|
+
}
|
|
469
|
+
.lake-dropdown .lake-character-dropdown-menu li .lake-dropdown-menu-check {
|
|
470
|
+
display: none;
|
|
471
|
+
}
|
|
472
|
+
.lake-dropdown .lake-character-dropdown-menu li .lake-dropdown-menu-icon {
|
|
473
|
+
display: none;
|
|
474
|
+
}
|
|
475
|
+
.lake-dropdown .lake-character-dropdown-menu li .lake-dropdown-menu-text {
|
|
476
|
+
text-align: center;
|
|
477
|
+
font-size: 24px;
|
|
478
|
+
width: 42px;
|
|
479
|
+
height: 42px;
|
|
480
|
+
line-height: 42px;
|
|
481
|
+
}
|
|
449
482
|
/* color type */
|
|
450
483
|
.lake-dropdown .lake-color-dropdown-menu {
|
|
451
484
|
flex-wrap: wrap;
|
|
@@ -939,9 +972,6 @@ lake-box[name="codeBlock"] .lake-box-activated .lake-code-block .lake-dropdown {
|
|
|
939
972
|
top: 24px;
|
|
940
973
|
left: auto;
|
|
941
974
|
right: 0;
|
|
942
|
-
overflow-y: scroll;
|
|
943
|
-
scrollbar-width: thin;
|
|
944
|
-
height: 200px;
|
|
945
975
|
}
|
|
946
976
|
.lake-code-block-error {
|
|
947
977
|
font-size: 14px;
|