lakelib 0.1.14 → 0.1.15

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 CHANGED
@@ -6,13 +6,13 @@
6
6
 
7
7
  ---
8
8
 
9
- Lake is a rich text editor for the web. It has a good user experience and provides easy-to-use programming interface to allow further extension.
9
+ Lake is a rich text editor for the web. It aims to be a user-friendly editor, and provides an easy-to-use programming interface to allow further 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
- 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.
15
+ To build Lake or modify its source code, you need to download the repository and start a development 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 all demos by visiting `http://localhost:8080/examples/`.
26
+ You can now view all the demos by visiting `http://localhost:8080/examples/`.
27
27
 
28
28
  ## Running tests
29
29
 
30
- Lake uses a lot of browser APIs and therefore it requires a real browser environment to run the tests. You can open `http://localhost:8080/tests/` to run all test cases visibly, or execute `pnpm test` command in your console 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 `pnpm test` command to run the tests in headless mode.
31
31
 
32
32
  ## License
33
33
 
package/dist/lake.css CHANGED
@@ -309,7 +309,8 @@ button.lake-primary-button.lake-button-hovered {
309
309
  opacity: 0.25;
310
310
  cursor: default;
311
311
  }
312
- .lake-dropdown.lake-list-dropdown button.lake-dropdown-title-hovered {
312
+ .lake-dropdown.lake-list-dropdown button.lake-dropdown-title-hovered,
313
+ .lake-dropdown.lake-icon-dropdown button.lake-dropdown-title-hovered {
313
314
  background-color: var(--background-hover-color);
314
315
  }
315
316
  .lake-dropdown button.lake-dropdown-title.lake-dropdown-title-no-down {
@@ -385,6 +386,7 @@ button.lake-primary-button.lake-button-hovered {
385
386
  cursor: pointer;
386
387
  margin: 0;
387
388
  }
389
+ /* list type */
388
390
  .lake-dropdown .lake-list-dropdown-menu li {
389
391
  padding: 6px 24px 6px 10px;
390
392
  }
@@ -414,10 +416,40 @@ button.lake-primary-button.lake-button-hovered {
414
416
  margin-left: 10px;
415
417
  white-space: nowrap;
416
418
  }
419
+ /* icon type */
420
+ .lake-dropdown .lake-icon-dropdown-menu {
421
+ flex-wrap: wrap;
422
+ justify-content: center;
423
+ }
424
+ .lake-dropdown .lake-icon-dropdown-menu li {
425
+ padding: 0;
426
+ border-radius: 2px;
427
+ }
428
+ .lake-dropdown .lake-icon-dropdown-menu li.lake-dropdown-item-hovered {
429
+ background-color: var(--background-hover-color);
430
+ }
431
+ .lake-dropdown .lake-icon-dropdown-menu li.lake-dropdown-item-selected {
432
+ background-color: var(--background-active-color);
433
+ }
434
+ .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-check {
435
+ display: none;
436
+ }
437
+ .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-icon {
438
+ line-height: 0;
439
+ margin: 5px;
440
+ }
441
+ .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-icon svg,
442
+ .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-icon img {
443
+ width: 32px;
444
+ height: 32px;
445
+ }
446
+ .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-text {
447
+ display: none;
448
+ }
449
+ /* color type */
417
450
  .lake-dropdown .lake-color-dropdown-menu {
418
451
  flex-wrap: wrap;
419
452
  justify-content: center;
420
- width: 296px;
421
453
  }
422
454
  .lake-dropdown .lake-color-dropdown-menu li {
423
455
  position: relative;
@@ -851,57 +883,6 @@ lake-box[name="hr"] .lake-box-focused .lake-hr {
851
883
  border-top: 1px solid var(--border-color);
852
884
  }
853
885
 
854
- .lake-video {
855
- position: relative;
856
- font-size: 14px;
857
- font-weight: normal;
858
- line-height: 0;
859
- box-sizing: content-box;
860
- border: 1px solid transparent;
861
- }
862
- lake-box[name="video"] .lake-box-hovered .lake-resizer {
863
- display: block;
864
- }
865
- .lake-video .lake-video-form {
866
- box-sizing: content-box;
867
- padding: 16px;
868
- line-height: normal;
869
- border: 1px solid var(--box-border-color);
870
- border-radius: 4px;
871
- }
872
- .lake-video input[type="text"] {
873
- box-sizing: border-box;
874
- font-family: var(--font-family);
875
- font-size: 14px;
876
- color: var(--text-color);
877
- border-radius: 5px;
878
- border: 1px solid var(--input-border-color);
879
- padding: 4px 10px;
880
- width: 100%;
881
- }
882
- .lake-video input[type="text"]:hover {
883
- border: 1px solid var(--input-border-hover-color);
884
- }
885
- .lake-video input[type="text"]:focus-visible {
886
- outline: var(--input-outline);
887
- outline-offset: -2px;
888
- }
889
- .lake-video .lake-row {
890
- padding-bottom: 8px;
891
- }
892
- .lake-video .lake-desc-row {
893
- padding-top: 8px;
894
- padding-bottom: 16px;
895
- color: var(--secondary-text-color);
896
- }
897
- .lake-video .lake-button-row {
898
- padding-top: 16px;
899
- }
900
- .lake-video .lake-button-row button {
901
- box-sizing: border-box;
902
- width: 100%;
903
- }
904
-
905
886
  /* CodeMirror */
906
887
  .cm-editor {
907
888
  font-size: 14px;
@@ -1072,6 +1053,57 @@ lake-box[name="image"] .lake-box-selected .lake-image-error {
1072
1053
  cursor: pointer;
1073
1054
  }
1074
1055
 
1056
+ .lake-video {
1057
+ position: relative;
1058
+ font-size: 14px;
1059
+ font-weight: normal;
1060
+ line-height: 0;
1061
+ box-sizing: content-box;
1062
+ border: 1px solid transparent;
1063
+ }
1064
+ lake-box[name="video"] .lake-box-hovered .lake-resizer {
1065
+ display: block;
1066
+ }
1067
+ .lake-video .lake-video-form {
1068
+ box-sizing: content-box;
1069
+ padding: 16px;
1070
+ line-height: normal;
1071
+ border: 1px solid var(--box-border-color);
1072
+ border-radius: 4px;
1073
+ }
1074
+ .lake-video input[type="text"] {
1075
+ box-sizing: border-box;
1076
+ font-family: var(--font-family);
1077
+ font-size: 14px;
1078
+ color: var(--text-color);
1079
+ border-radius: 5px;
1080
+ border: 1px solid var(--input-border-color);
1081
+ padding: 4px 10px;
1082
+ width: 100%;
1083
+ }
1084
+ .lake-video input[type="text"]:hover {
1085
+ border: 1px solid var(--input-border-hover-color);
1086
+ }
1087
+ .lake-video input[type="text"]:focus-visible {
1088
+ outline: var(--input-outline);
1089
+ outline-offset: -2px;
1090
+ }
1091
+ .lake-video .lake-row {
1092
+ padding-bottom: 8px;
1093
+ }
1094
+ .lake-video .lake-desc-row {
1095
+ padding-top: 8px;
1096
+ padding-bottom: 16px;
1097
+ color: var(--secondary-text-color);
1098
+ }
1099
+ .lake-video .lake-button-row {
1100
+ padding-top: 16px;
1101
+ }
1102
+ .lake-video .lake-button-row button {
1103
+ box-sizing: border-box;
1104
+ width: 100%;
1105
+ }
1106
+
1075
1107
  .lake-file {
1076
1108
  position: relative;
1077
1109
  font-size: 16px;
@@ -1137,6 +1169,23 @@ lake-box[name="file"] .lake-box-focused .lake-file {
1137
1169
  color: var(--error-color);
1138
1170
  }
1139
1171
 
1172
+ .lake-emoji {
1173
+ line-height: 0;
1174
+ box-sizing: content-box;
1175
+ border: 1px solid transparent;
1176
+ border-radius: 2px;
1177
+ }
1178
+ .lake-emoji img {
1179
+ border: 0;
1180
+ border-radius: 2px;
1181
+ width: 32px;
1182
+ height: 32px;
1183
+ }
1184
+ lake-box[name="emoji"] .lake-box-focused .lake-emoji {
1185
+ border-color: var(--selection-background-color);
1186
+ background-color: var(--selection-background-color);
1187
+ }
1188
+
1140
1189
  .lake-toolbar {
1141
1190
  font-family: var(--font-family);
1142
1191
  font-size: 14px;