lakelib 0.2.4 → 0.2.5

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 (162) hide show
  1. package/dist/lake.css +46 -44
  2. package/dist/lake.min.js +35 -35
  3. package/dist/lake.min.js.map +1 -1
  4. package/lib/{types/css → css}/index.d.ts +1 -0
  5. package/lib/{types/i18n/ja → i18n/en-US}/index.d.ts +9 -0
  6. package/lib/{types/i18n/en-US → i18n/ja}/index.d.ts +9 -0
  7. package/lib/{types/i18n → i18n}/ko/index.d.ts +9 -0
  8. package/lib/{types/i18n → i18n}/types.d.ts +82 -9
  9. package/lib/{types/i18n → i18n}/zh-CN/index.d.ts +9 -0
  10. package/lib/lake.css +46 -44
  11. package/lib/lake.js +4618 -4475
  12. package/lib/lake.js.map +1 -1
  13. package/lib/{types/models → models}/box.d.ts +5 -3
  14. package/lib/types/{types/object.d.ts → object.d.ts} +3 -3
  15. package/lib/ui/floating-toolbar.d.ts +16 -0
  16. package/lib/{types/ui → ui}/link-popup.d.ts +2 -2
  17. package/lib/{types/ui/box-resizer.d.ts → ui/resizer.d.ts} +6 -6
  18. package/lib/{types/ui → ui}/toolbar.d.ts +2 -2
  19. package/lib/{types/utils → utils}/index.d.ts +1 -1
  20. package/lib/utils/is-visible.d.ts +8 -0
  21. package/package.json +19 -19
  22. package/lib/types/types/box-toolbar.d.ts +0 -22
  23. package/lib/types/ui/box-toolbar.d.ts +0 -30
  24. package/lib/types/utils/node-position.d.ts +0 -9
  25. /package/lib/{types/boxes → boxes}/code-block.d.ts +0 -0
  26. /package/lib/{types/boxes → boxes}/emoji.d.ts +0 -0
  27. /package/lib/{types/boxes → boxes}/equation.d.ts +0 -0
  28. /package/lib/{types/boxes → boxes}/file.d.ts +0 -0
  29. /package/lib/{types/boxes → boxes}/hr.d.ts +0 -0
  30. /package/lib/{types/boxes → boxes}/image.d.ts +0 -0
  31. /package/lib/{types/boxes → boxes}/mention.d.ts +0 -0
  32. /package/lib/{types/boxes → boxes}/video.d.ts +0 -0
  33. /package/lib/{types/config → config}/element-rules.d.ts +0 -0
  34. /package/lib/{types/config → config}/menu-items.d.ts +0 -0
  35. /package/lib/{types/config → config}/slash-items.d.ts +0 -0
  36. /package/lib/{types/config → config}/tag-names.d.ts +0 -0
  37. /package/lib/{types/config → config}/toolbar-items.d.ts +0 -0
  38. /package/lib/{types/editor.d.ts → editor.d.ts} +0 -0
  39. /package/lib/{types/elements → elements}/bookmark.d.ts +0 -0
  40. /package/lib/{types/elements → elements}/box.d.ts +0 -0
  41. /package/lib/{types/i18n → i18n}/index.d.ts +0 -0
  42. /package/lib/{types/icons → icons}/index.d.ts +0 -0
  43. /package/lib/{types/index.d.ts → index.d.ts} +0 -0
  44. /package/lib/{types/managers → managers}/box-manager.d.ts +0 -0
  45. /package/lib/{types/managers → managers}/command.d.ts +0 -0
  46. /package/lib/{types/managers → managers}/history.d.ts +0 -0
  47. /package/lib/{types/managers → managers}/keystroke.d.ts +0 -0
  48. /package/lib/{types/managers → managers}/plugin.d.ts +0 -0
  49. /package/lib/{types/managers → managers}/selection.d.ts +0 -0
  50. /package/lib/{types/models → models}/fragment.d.ts +0 -0
  51. /package/lib/{types/models → models}/nodes.d.ts +0 -0
  52. /package/lib/{types/models → models}/range.d.ts +0 -0
  53. /package/lib/{types/operations → operations}/add-mark.d.ts +0 -0
  54. /package/lib/{types/operations → operations}/delete-contents.d.ts +0 -0
  55. /package/lib/{types/operations → operations}/fix-list.d.ts +0 -0
  56. /package/lib/{types/operations → operations}/insert-bookmark.d.ts +0 -0
  57. /package/lib/{types/operations → operations}/insert-box.d.ts +0 -0
  58. /package/lib/{types/operations → operations}/insert-fragment.d.ts +0 -0
  59. /package/lib/{types/operations → operations}/insert-link.d.ts +0 -0
  60. /package/lib/{types/operations → operations}/insert-node.d.ts +0 -0
  61. /package/lib/{types/operations → operations}/remove-box.d.ts +0 -0
  62. /package/lib/{types/operations → operations}/remove-mark.d.ts +0 -0
  63. /package/lib/{types/operations → operations}/set-blocks.d.ts +0 -0
  64. /package/lib/{types/operations → operations}/split-block.d.ts +0 -0
  65. /package/lib/{types/operations → operations}/split-marks.d.ts +0 -0
  66. /package/lib/{types/operations → operations}/to-bookmark.d.ts +0 -0
  67. /package/lib/{types/parsers → parsers}/html-parser.d.ts +0 -0
  68. /package/lib/{types/parsers → parsers}/text-parser.d.ts +0 -0
  69. /package/lib/{types/plugins → plugins}/align.d.ts +0 -0
  70. /package/lib/{types/plugins → plugins}/arrow-keys.d.ts +0 -0
  71. /package/lib/{types/plugins → plugins}/backspace-key.d.ts +0 -0
  72. /package/lib/{types/plugins → plugins}/block-quote.d.ts +0 -0
  73. /package/lib/{types/plugins → plugins}/bold.d.ts +0 -0
  74. /package/lib/{types/plugins → plugins}/code-block.d.ts +0 -0
  75. /package/lib/{types/plugins → plugins}/code.d.ts +0 -0
  76. /package/lib/{types/plugins → plugins}/copy.d.ts +0 -0
  77. /package/lib/{types/plugins → plugins}/cut.d.ts +0 -0
  78. /package/lib/{types/plugins → plugins}/delete-key.d.ts +0 -0
  79. /package/lib/{types/plugins → plugins}/drop.d.ts +0 -0
  80. /package/lib/{types/plugins → plugins}/emoji.d.ts +0 -0
  81. /package/lib/{types/plugins → plugins}/enter-key.d.ts +0 -0
  82. /package/lib/{types/plugins → plugins}/equation.d.ts +0 -0
  83. /package/lib/{types/plugins → plugins}/escape-key.d.ts +0 -0
  84. /package/lib/{types/plugins → plugins}/file.d.ts +0 -0
  85. /package/lib/{types/plugins → plugins}/font-color.d.ts +0 -0
  86. /package/lib/{types/plugins → plugins}/font-family.d.ts +0 -0
  87. /package/lib/{types/plugins → plugins}/font-size.d.ts +0 -0
  88. /package/lib/{types/plugins → plugins}/format-painter.d.ts +0 -0
  89. /package/lib/{types/plugins → plugins}/heading.d.ts +0 -0
  90. /package/lib/{types/plugins → plugins}/highlight.d.ts +0 -0
  91. /package/lib/{types/plugins → plugins}/hr.d.ts +0 -0
  92. /package/lib/{types/plugins → plugins}/image.d.ts +0 -0
  93. /package/lib/{types/plugins → plugins}/indent.d.ts +0 -0
  94. /package/lib/{types/plugins → plugins}/italic.d.ts +0 -0
  95. /package/lib/{types/plugins → plugins}/link.d.ts +0 -0
  96. /package/lib/{types/plugins → plugins}/list.d.ts +0 -0
  97. /package/lib/{types/plugins → plugins}/markdown.d.ts +0 -0
  98. /package/lib/{types/plugins → plugins}/mention.d.ts +0 -0
  99. /package/lib/{types/plugins → plugins}/paste.d.ts +0 -0
  100. /package/lib/{types/plugins → plugins}/redo.d.ts +0 -0
  101. /package/lib/{types/plugins → plugins}/remove-format.d.ts +0 -0
  102. /package/lib/{types/plugins → plugins}/select-all.d.ts +0 -0
  103. /package/lib/{types/plugins → plugins}/shift-enter-key.d.ts +0 -0
  104. /package/lib/{types/plugins → plugins}/slash.d.ts +0 -0
  105. /package/lib/{types/plugins → plugins}/special-character.d.ts +0 -0
  106. /package/lib/{types/plugins → plugins}/strikethrough.d.ts +0 -0
  107. /package/lib/{types/plugins → plugins}/subscript.d.ts +0 -0
  108. /package/lib/{types/plugins → plugins}/superscript.d.ts +0 -0
  109. /package/lib/{types/plugins → plugins}/tab-key.d.ts +0 -0
  110. /package/lib/{types/plugins → plugins}/underline.d.ts +0 -0
  111. /package/lib/{types/plugins → plugins}/undo.d.ts +0 -0
  112. /package/lib/{types/plugins → plugins}/unlink.d.ts +0 -0
  113. /package/lib/{types/plugins → plugins}/video.d.ts +0 -0
  114. /package/lib/{types/storage → storage}/box-instances.d.ts +0 -0
  115. /package/lib/{types/storage → storage}/boxes.d.ts +0 -0
  116. /package/lib/{types/storage → storage}/editors.d.ts +0 -0
  117. /package/lib/types/{types/box.d.ts → box.d.ts} +0 -0
  118. /package/lib/types/{types/dropdown.d.ts → dropdown.d.ts} +0 -0
  119. /package/lib/types/{types/mention.d.ts → mention.d.ts} +0 -0
  120. /package/lib/types/{types/native.d.ts → native.d.ts} +0 -0
  121. /package/lib/types/{types/node.d.ts → node.d.ts} +0 -0
  122. /package/lib/types/{types/plugin.d.ts → plugin.d.ts} +0 -0
  123. /package/lib/types/{types/request.d.ts → request.d.ts} +0 -0
  124. /package/lib/types/{types/slash.d.ts → slash.d.ts} +0 -0
  125. /package/lib/types/{types/toolbar.d.ts → toolbar.d.ts} +0 -0
  126. /package/lib/{types/ui → ui}/button.d.ts +0 -0
  127. /package/lib/{types/ui → ui}/dropdown.d.ts +0 -0
  128. /package/lib/{types/ui → ui}/mention-menu.d.ts +0 -0
  129. /package/lib/{types/ui → ui}/menu.d.ts +0 -0
  130. /package/lib/{types/ui → ui}/slash-menu.d.ts +0 -0
  131. /package/lib/{types/utils → utils}/append-break.d.ts +0 -0
  132. /package/lib/{types/utils → utils}/camel-case.d.ts +0 -0
  133. /package/lib/{types/utils → utils}/change-tag-name.d.ts +0 -0
  134. /package/lib/{types/utils → utils}/debug.d.ts +0 -0
  135. /package/lib/{types/utils → utils}/denormalize-value.d.ts +0 -0
  136. /package/lib/{types/utils → utils}/encode.d.ts +0 -0
  137. /package/lib/{types/utils → utils}/file-size.d.ts +0 -0
  138. /package/lib/{types/utils → utils}/fix-numbered-list.d.ts +0 -0
  139. /package/lib/{types/utils → utils}/from-base64.d.ts +0 -0
  140. /package/lib/{types/utils → utils}/get-box.d.ts +0 -0
  141. /package/lib/{types/utils → utils}/get-css.d.ts +0 -0
  142. /package/lib/{types/utils → utils}/get-deep-element.d.ts +0 -0
  143. /package/lib/{types/utils → utils}/in-string.d.ts +0 -0
  144. /package/lib/{types/utils → utils}/merge-nodes.d.ts +0 -0
  145. /package/lib/{types/utils → utils}/modifier-text.d.ts +0 -0
  146. /package/lib/{types/utils → utils}/morph.d.ts +0 -0
  147. /package/lib/{types/utils → utils}/normalize-value.d.ts +0 -0
  148. /package/lib/{types/utils → utils}/parse-style.d.ts +0 -0
  149. /package/lib/{types/utils → utils}/query.d.ts +0 -0
  150. /package/lib/{types/utils → utils}/remove-break.d.ts +0 -0
  151. /package/lib/{types/utils → utils}/remove-zws.d.ts +0 -0
  152. /package/lib/{types/utils → utils}/request.d.ts +0 -0
  153. /package/lib/{types/utils → utils}/safe-template.d.ts +0 -0
  154. /package/lib/{types/utils → utils}/scroll-to-node.d.ts +0 -0
  155. /package/lib/{types/utils → utils}/set-block-indent.d.ts +0 -0
  156. /package/lib/{types/utils → utils}/split-nodes.d.ts +0 -0
  157. /package/lib/{types/utils → utils}/template.d.ts +0 -0
  158. /package/lib/{types/utils → utils}/to-base64.d.ts +0 -0
  159. /package/lib/{types/utils → utils}/to-hex.d.ts +0 -0
  160. /package/lib/{types/utils → utils}/to-node-list.d.ts +0 -0
  161. /package/lib/{types/utils → utils}/upload-file.d.ts +0 -0
  162. /package/lib/{types/utils → utils}/wrap-node-list.d.ts +0 -0
@@ -24,3 +24,4 @@ import './equation.css';
24
24
  import './mention.css';
25
25
  import './slash.css';
26
26
  import './toolbar.css';
27
+ import './floating-toolbar.css';
@@ -102,6 +102,15 @@ declare const _default: {
102
102
  loadingError: string;
103
103
  zoomOut: string;
104
104
  zoomIn: string;
105
+ align: string;
106
+ alignLeft: string;
107
+ alignCenter: string;
108
+ alignRight: string;
109
+ resize: string;
110
+ pageWidth: string;
111
+ originalWidth: string;
112
+ imageWidth: string;
113
+ open: string;
105
114
  };
106
115
  file: {
107
116
  download: string;
@@ -102,6 +102,15 @@ declare const _default: {
102
102
  loadingError: string;
103
103
  zoomOut: string;
104
104
  zoomIn: string;
105
+ align: string;
106
+ alignLeft: string;
107
+ alignCenter: string;
108
+ alignRight: string;
109
+ resize: string;
110
+ pageWidth: string;
111
+ originalWidth: string;
112
+ imageWidth: "{0} 画像サイズ";
113
+ open: string;
105
114
  };
106
115
  file: {
107
116
  download: string;
@@ -102,6 +102,15 @@ declare const _default: {
102
102
  loadingError: string;
103
103
  zoomOut: string;
104
104
  zoomIn: string;
105
+ align: string;
106
+ alignLeft: string;
107
+ alignCenter: string;
108
+ alignRight: string;
109
+ resize: string;
110
+ pageWidth: string;
111
+ originalWidth: string;
112
+ imageWidth: "{0} 이미지 크기";
113
+ open: string;
105
114
  };
106
115
  file: {
107
116
  download: string;
@@ -1,4 +1,4 @@
1
- import type { BaseTranslation as BaseTranslationType, LocalizedString } from 'typesafe-i18n';
1
+ import type { BaseTranslation as BaseTranslationType, LocalizedString, RequiredParams } from 'typesafe-i18n';
2
2
  export type BaseTranslation = BaseTranslationType;
3
3
  export type BaseLocale = 'en-US';
4
4
  export type Locales = 'en-US' | 'ja' | 'ko' | 'zh-CN';
@@ -51,7 +51,7 @@ type RootTranslation = {
51
51
  */
52
52
  alignRight: string;
53
53
  /**
54
- * Al​i​g​n​ ​j​u​s​t​i​f​y
54
+ * J​u​s​t​i​f​y
55
55
  */
56
56
  alignJustify: string;
57
57
  /**
@@ -343,7 +343,7 @@ type RootTranslation = {
343
343
  */
344
344
  url: string;
345
345
  /**
346
- * Link​ ​t​i​t​l​e
346
+ * Text​ ​t​o​ ​d​i​sp​l​a​y
347
347
  */
348
348
  title: string;
349
349
  /**
@@ -385,7 +385,7 @@ type RootTranslation = {
385
385
  */
386
386
  close: string;
387
387
  /**
388
- * The im​a​g​e​ ​cann​o​t b​e​lo​a​d​e​d
388
+ * Unabl​e​ ​to l​o​ad​ ​im​a​g​e​.
389
389
  */
390
390
  loadingError: string;
391
391
  /**
@@ -396,6 +396,43 @@ type RootTranslation = {
396
396
  * Z​o​o​m​ ​i​n
397
397
  */
398
398
  zoomIn: string;
399
+ /**
400
+ * A​l​i​g​n​m​e​n​t
401
+ */
402
+ align: string;
403
+ /**
404
+ * A​l​i​g​n​ ​l​e​f​t
405
+ */
406
+ alignLeft: string;
407
+ /**
408
+ * A​l​i​g​n​ ​c​e​n​t​e​r
409
+ */
410
+ alignCenter: string;
411
+ /**
412
+ * A​l​i​g​n​ ​r​i​g​h​t
413
+ */
414
+ alignRight: string;
415
+ /**
416
+ * R​e​s​i​z​e​ ​i​m​a​g​e
417
+ */
418
+ resize: string;
419
+ /**
420
+ * P​a​g​e​ ​w​i​d​t​h
421
+ */
422
+ pageWidth: string;
423
+ /**
424
+ * O​r​i​g​i​n​a​l​ ​w​i​d​t​h
425
+ */
426
+ originalWidth: string;
427
+ /**
428
+ * {​0​}​ ​i​m​a​g​e​ ​w​i​d​t​h
429
+ * @param {unknown} 0
430
+ */
431
+ imageWidth: RequiredParams<'0'>;
432
+ /**
433
+ * O​p​e​n​ ​i​m​a​g​e​ ​i​n​ ​n​e​w​ ​t​a​b
434
+ */
435
+ open: string;
399
436
  };
400
437
  file: {
401
438
  /**
@@ -441,7 +478,7 @@ type RootTranslation = {
441
478
  */
442
479
  save: string;
443
480
  /**
444
- * H​e​lp
481
+ * Su​p​p​o​r​t​e​d ​f​u​n​c​t​i​o​n​s
445
482
  */
446
483
  help: string;
447
484
  /**
@@ -497,7 +534,7 @@ export type TranslationFunctions = {
497
534
  */
498
535
  alignRight: () => LocalizedString;
499
536
  /**
500
- * Align justify
537
+ * Justify
501
538
  */
502
539
  alignJustify: () => LocalizedString;
503
540
  /**
@@ -789,7 +826,7 @@ export type TranslationFunctions = {
789
826
  */
790
827
  url: () => LocalizedString;
791
828
  /**
792
- * Link title
829
+ * Text to display
793
830
  */
794
831
  title: () => LocalizedString;
795
832
  /**
@@ -831,7 +868,7 @@ export type TranslationFunctions = {
831
868
  */
832
869
  close: () => LocalizedString;
833
870
  /**
834
- * The image cannot be loaded
871
+ * Unable to load image.
835
872
  */
836
873
  loadingError: () => LocalizedString;
837
874
  /**
@@ -842,6 +879,42 @@ export type TranslationFunctions = {
842
879
  * Zoom in
843
880
  */
844
881
  zoomIn: () => LocalizedString;
882
+ /**
883
+ * Alignment
884
+ */
885
+ align: () => LocalizedString;
886
+ /**
887
+ * Align left
888
+ */
889
+ alignLeft: () => LocalizedString;
890
+ /**
891
+ * Align center
892
+ */
893
+ alignCenter: () => LocalizedString;
894
+ /**
895
+ * Align right
896
+ */
897
+ alignRight: () => LocalizedString;
898
+ /**
899
+ * Resize image
900
+ */
901
+ resize: () => LocalizedString;
902
+ /**
903
+ * Page width
904
+ */
905
+ pageWidth: () => LocalizedString;
906
+ /**
907
+ * Original width
908
+ */
909
+ originalWidth: () => LocalizedString;
910
+ /**
911
+ * {0} image width
912
+ */
913
+ imageWidth: (arg0: unknown) => LocalizedString;
914
+ /**
915
+ * Open image in new tab
916
+ */
917
+ open: () => LocalizedString;
845
918
  };
846
919
  file: {
847
920
  /**
@@ -887,7 +960,7 @@ export type TranslationFunctions = {
887
960
  */
888
961
  save: () => LocalizedString;
889
962
  /**
890
- * Help
963
+ * Supported functions
891
964
  */
892
965
  help: () => LocalizedString;
893
966
  /**
@@ -102,6 +102,15 @@ declare const _default: {
102
102
  loadingError: string;
103
103
  zoomOut: string;
104
104
  zoomIn: string;
105
+ align: string;
106
+ alignLeft: string;
107
+ alignCenter: string;
108
+ alignRight: string;
109
+ resize: string;
110
+ pageWidth: string;
111
+ originalWidth: string;
112
+ imageWidth: "{0} 图片大小";
113
+ open: string;
105
114
  };
106
115
  file: {
107
116
  download: string;
package/lib/lake.css CHANGED
@@ -1,7 +1,7 @@
1
1
  :root {
2
- /* font family */
2
+ /* common */
3
3
  --lake-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
4
- /* common color */
4
+ --lake-font-size: 16px;
5
5
  --lake-text-color: #000000e0;
6
6
  --lake-secondary-text-color: #000000a6;
7
7
  --lake-border-color: #d9d9d9;
@@ -10,8 +10,6 @@
10
10
  --lake-success-color: #52c41a;
11
11
  --lake-warning-color: #faad14;
12
12
  --lake-error-color: #ff4d4f;
13
- /* z-index */
14
- --lake-z-index-popup: 822;
15
13
  /* selection */
16
14
  --lake-selection-background-color: #1ba2e333;
17
15
  /* link */
@@ -21,12 +19,16 @@
21
19
  --lake-box-border-color: #d9d9d9;
22
20
  --lake-box-border-focus-color: #1677ff;
23
21
  --lake-box-background-color: #f6f8fa;
22
+ /* popup */
23
+ --lake-popup-z-index: 822;
24
+ --lake-popup-font-size: 14px;
25
+ --lake-popup-border-color: #d9d9d9;
26
+ --lake-popup-shadow: 0 6px 16px 0 #00000014, 0 3px 6px -4px #0000001f, 0 9px 28px 8px #0000000d;
24
27
  /* button */
28
+ --lake-button-font-size: 14px;
25
29
  --lake-button-shadow: 0 2px 0 #00000005;
26
30
  --lake-button-outline: 2px solid #69b1ff;
27
- /* popup */
28
- --lake-popup-shadow: 0 6px 16px 0 #00000014, 0 3px 6px -4px #0000001f, 0 9px 28px 8px #0000000d;
29
- /* input form */
31
+ /* input element, text field */
30
32
  --lake-input-border-color: #d9d9d9;
31
33
  --lake-input-border-hover-color: #69b1ff;
32
34
  --lake-input-outline: 2px solid #69b1ff;
@@ -47,7 +49,7 @@
47
49
  .lake-container {
48
50
  box-sizing: border-box;
49
51
  font-family: var(--lake-font-family);
50
- font-size: 16px;
52
+ font-size: var(--lake-font-size);
51
53
  font-weight: normal;
52
54
  line-height: 1.45;
53
55
  padding: 16px 24px;
@@ -195,34 +197,12 @@ lake-box .lake-button-group button svg {
195
197
  height: 16px;
196
198
  margin: 6px;
197
199
  }
198
- /* box toolbar */
199
- .lake-box-toolbar {
200
- position: absolute;
201
- top: 0;
202
- left: 0;
203
- z-index: var(--lake-z-index-popup);
204
- border: 1px solid var(--lake-border-color);
205
- border-radius: 5px;
206
- background-color: #fff;
207
- box-shadow: 0 2px 0 #00000005;
208
- padding: 4px;
209
- display: flex;
210
- flex-wrap: wrap;
211
- align-items: center;
212
- }
213
- .lake-box-toolbar .lake-toolbar-divider {
214
- width: 1px;
215
- height: 20px;
216
- margin: 0 4px;
217
- border-left: 1px solid var(--lake-border-color);
218
- user-select: none;
219
- }
220
200
 
221
201
  button.lake-button {
222
202
  border-radius: 5px;
223
203
  border: 0;
224
204
  font-family: Arial;
225
- font-size: 14px;
205
+ font-size: var(--lake-button-font-size);
226
206
  color: var(--lake-text-color);
227
207
  background-color: #fff;
228
208
  padding: 0;
@@ -287,14 +267,14 @@ button.lake-primary-button.lake-button-hovered {
287
267
  position: relative;
288
268
  font-family: var(--lake-font-family);
289
269
  color: var(--lake-text-color);
290
- font-size: 14px;
270
+ font-size: var(--lake-button-font-size);
291
271
  user-select: none;
292
272
  }
293
273
  .lake-dropdown button.lake-dropdown-title {
294
274
  border-radius: 5px;
295
275
  border: 0;
296
276
  font-family: Arial;
297
- font-size: 14px;
277
+ font-size: var(--lake-button-font-size);
298
278
  color: var(--lake-text-color);
299
279
  background-color: #fff;
300
280
  padding: 0;
@@ -366,11 +346,11 @@ button.lake-primary-button.lake-button-hovered {
366
346
  position: absolute;
367
347
  top: 30px;
368
348
  left: 0;
369
- z-index: var(--lake-z-index-popup);
349
+ z-index: var(--lake-popup-z-index);
370
350
  list-style: none;
371
351
  margin: 0;
372
352
  padding: 6px 0;
373
- border: 1px solid var(--lake-border-color);
353
+ border: 1px solid var(--lake-popup-border-color);
374
354
  border-radius: 5px;
375
355
  background-color: #fff;
376
356
  box-shadow: var(--lake-popup-shadow);
@@ -536,7 +516,7 @@ button.lake-primary-button.lake-button-hovered {
536
516
  }
537
517
  .lake-color-dropdown-menu li:first-child .lake-dropdown-menu-text {
538
518
  width: 100%;
539
- font-size: 14px;
519
+ font-size: var(--lake-button-font-size);
540
520
  border: 1px solid transparent;
541
521
  height: auto;
542
522
  }
@@ -544,7 +524,7 @@ button.lake-primary-button.lake-button-hovered {
544
524
  .lake-popup {
545
525
  box-sizing: border-box;
546
526
  font-family: var(--lake-font-family);
547
- font-size: 14px;
527
+ font-size: var(--lake-popup-font-size);
548
528
  font-weight: normal;
549
529
  line-height: normal;
550
530
  color: var(--lake-text-color);
@@ -554,12 +534,12 @@ button.lake-primary-button.lake-button-hovered {
554
534
  .lake-popup ::after {
555
535
  box-sizing: border-box;
556
536
  }
557
- .lake-popup button {
537
+ .lake-popup .lake-text-button {
558
538
  box-shadow: var(--lake-button-shadow);
559
539
  }
560
540
  .lake-popup input[type="text"] {
561
541
  font-family: var(--lake-font-family);
562
- font-size: 14px;
542
+ font-size: var(--lake-popup-font-size);
563
543
  color: var(--lake-text-color);
564
544
  border-radius: 5px;
565
545
  border: 1px solid var(--lake-input-border-color);
@@ -580,9 +560,9 @@ button.lake-primary-button.lake-button-hovered {
580
560
  position: absolute;
581
561
  top: 0;
582
562
  left: 0;
583
- z-index: var(--lake-z-index-popup);
563
+ z-index: var(--lake-popup-z-index);
584
564
  list-style: none;
585
- border: 1px solid var(--lake-border-color);
565
+ border: 1px solid var(--lake-popup-border-color);
586
566
  border-radius: 5px;
587
567
  margin: 0;
588
568
  padding: 4px 8px;
@@ -714,8 +694,8 @@ button.lake-primary-button.lake-button-hovered {
714
694
  position: absolute;
715
695
  top: 0;
716
696
  left: 0;
717
- z-index: var(--lake-z-index-popup);
718
- border: 1px solid var(--lake-border-color);
697
+ z-index: var(--lake-popup-z-index);
698
+ border: 1px solid var(--lake-popup-border-color);
719
699
  border-radius: 5px;
720
700
  padding: 16px;
721
701
  width: fit-content;
@@ -1160,7 +1140,7 @@ lake-box[name="video"] .lake-box-hovered .lake-resizer {
1160
1140
 
1161
1141
  .lake-file {
1162
1142
  position: relative;
1163
- font-size: 16px;
1143
+ font-size: var(--lake-font-size);
1164
1144
  font-weight: normal;
1165
1145
  line-height: 0;
1166
1146
  border: 1px solid transparent;
@@ -1403,3 +1383,25 @@ lake-box[name="mention"] .lake-box-focused .lake-mention {
1403
1383
  .lake-toolbar .lake-upload input[type="file"] {
1404
1384
  display: none;
1405
1385
  }
1386
+
1387
+ .lake-floating-toolbar {
1388
+ position: absolute;
1389
+ top: 0;
1390
+ left: 0;
1391
+ z-index: var(--lake-popup-z-index);
1392
+ border: 1px solid var(--lake-border-color);
1393
+ border-radius: 5px;
1394
+ background-color: #fff;
1395
+ box-shadow: 0 2px 0 #00000005;
1396
+ padding: 4px;
1397
+ display: flex;
1398
+ flex-wrap: wrap;
1399
+ align-items: center;
1400
+ }
1401
+ .lake-floating-toolbar .lake-toolbar-divider {
1402
+ width: 1px;
1403
+ height: 20px;
1404
+ margin: 0 4px;
1405
+ border-left: 1px solid var(--lake-border-color);
1406
+ user-select: none;
1407
+ }