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.
- package/dist/lake.css +46 -44
- package/dist/lake.min.js +35 -35
- package/dist/lake.min.js.map +1 -1
- package/lib/{types/css → css}/index.d.ts +1 -0
- package/lib/{types/i18n/ja → i18n/en-US}/index.d.ts +9 -0
- package/lib/{types/i18n/en-US → i18n/ja}/index.d.ts +9 -0
- package/lib/{types/i18n → i18n}/ko/index.d.ts +9 -0
- package/lib/{types/i18n → i18n}/types.d.ts +82 -9
- package/lib/{types/i18n → i18n}/zh-CN/index.d.ts +9 -0
- package/lib/lake.css +46 -44
- package/lib/lake.js +4618 -4475
- package/lib/lake.js.map +1 -1
- package/lib/{types/models → models}/box.d.ts +5 -3
- package/lib/types/{types/object.d.ts → object.d.ts} +3 -3
- package/lib/ui/floating-toolbar.d.ts +16 -0
- package/lib/{types/ui → ui}/link-popup.d.ts +2 -2
- package/lib/{types/ui/box-resizer.d.ts → ui/resizer.d.ts} +6 -6
- package/lib/{types/ui → ui}/toolbar.d.ts +2 -2
- package/lib/{types/utils → utils}/index.d.ts +1 -1
- package/lib/utils/is-visible.d.ts +8 -0
- package/package.json +19 -19
- package/lib/types/types/box-toolbar.d.ts +0 -22
- package/lib/types/ui/box-toolbar.d.ts +0 -30
- package/lib/types/utils/node-position.d.ts +0 -9
- /package/lib/{types/boxes → boxes}/code-block.d.ts +0 -0
- /package/lib/{types/boxes → boxes}/emoji.d.ts +0 -0
- /package/lib/{types/boxes → boxes}/equation.d.ts +0 -0
- /package/lib/{types/boxes → boxes}/file.d.ts +0 -0
- /package/lib/{types/boxes → boxes}/hr.d.ts +0 -0
- /package/lib/{types/boxes → boxes}/image.d.ts +0 -0
- /package/lib/{types/boxes → boxes}/mention.d.ts +0 -0
- /package/lib/{types/boxes → boxes}/video.d.ts +0 -0
- /package/lib/{types/config → config}/element-rules.d.ts +0 -0
- /package/lib/{types/config → config}/menu-items.d.ts +0 -0
- /package/lib/{types/config → config}/slash-items.d.ts +0 -0
- /package/lib/{types/config → config}/tag-names.d.ts +0 -0
- /package/lib/{types/config → config}/toolbar-items.d.ts +0 -0
- /package/lib/{types/editor.d.ts → editor.d.ts} +0 -0
- /package/lib/{types/elements → elements}/bookmark.d.ts +0 -0
- /package/lib/{types/elements → elements}/box.d.ts +0 -0
- /package/lib/{types/i18n → i18n}/index.d.ts +0 -0
- /package/lib/{types/icons → icons}/index.d.ts +0 -0
- /package/lib/{types/index.d.ts → index.d.ts} +0 -0
- /package/lib/{types/managers → managers}/box-manager.d.ts +0 -0
- /package/lib/{types/managers → managers}/command.d.ts +0 -0
- /package/lib/{types/managers → managers}/history.d.ts +0 -0
- /package/lib/{types/managers → managers}/keystroke.d.ts +0 -0
- /package/lib/{types/managers → managers}/plugin.d.ts +0 -0
- /package/lib/{types/managers → managers}/selection.d.ts +0 -0
- /package/lib/{types/models → models}/fragment.d.ts +0 -0
- /package/lib/{types/models → models}/nodes.d.ts +0 -0
- /package/lib/{types/models → models}/range.d.ts +0 -0
- /package/lib/{types/operations → operations}/add-mark.d.ts +0 -0
- /package/lib/{types/operations → operations}/delete-contents.d.ts +0 -0
- /package/lib/{types/operations → operations}/fix-list.d.ts +0 -0
- /package/lib/{types/operations → operations}/insert-bookmark.d.ts +0 -0
- /package/lib/{types/operations → operations}/insert-box.d.ts +0 -0
- /package/lib/{types/operations → operations}/insert-fragment.d.ts +0 -0
- /package/lib/{types/operations → operations}/insert-link.d.ts +0 -0
- /package/lib/{types/operations → operations}/insert-node.d.ts +0 -0
- /package/lib/{types/operations → operations}/remove-box.d.ts +0 -0
- /package/lib/{types/operations → operations}/remove-mark.d.ts +0 -0
- /package/lib/{types/operations → operations}/set-blocks.d.ts +0 -0
- /package/lib/{types/operations → operations}/split-block.d.ts +0 -0
- /package/lib/{types/operations → operations}/split-marks.d.ts +0 -0
- /package/lib/{types/operations → operations}/to-bookmark.d.ts +0 -0
- /package/lib/{types/parsers → parsers}/html-parser.d.ts +0 -0
- /package/lib/{types/parsers → parsers}/text-parser.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/align.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/arrow-keys.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/backspace-key.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/block-quote.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/bold.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/code-block.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/code.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/copy.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/cut.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/delete-key.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/drop.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/emoji.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/enter-key.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/equation.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/escape-key.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/file.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/font-color.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/font-family.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/font-size.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/format-painter.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/heading.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/highlight.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/hr.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/image.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/indent.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/italic.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/link.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/list.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/markdown.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/mention.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/paste.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/redo.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/remove-format.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/select-all.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/shift-enter-key.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/slash.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/special-character.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/strikethrough.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/subscript.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/superscript.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/tab-key.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/underline.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/undo.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/unlink.d.ts +0 -0
- /package/lib/{types/plugins → plugins}/video.d.ts +0 -0
- /package/lib/{types/storage → storage}/box-instances.d.ts +0 -0
- /package/lib/{types/storage → storage}/boxes.d.ts +0 -0
- /package/lib/{types/storage → storage}/editors.d.ts +0 -0
- /package/lib/types/{types/box.d.ts → box.d.ts} +0 -0
- /package/lib/types/{types/dropdown.d.ts → dropdown.d.ts} +0 -0
- /package/lib/types/{types/mention.d.ts → mention.d.ts} +0 -0
- /package/lib/types/{types/native.d.ts → native.d.ts} +0 -0
- /package/lib/types/{types/node.d.ts → node.d.ts} +0 -0
- /package/lib/types/{types/plugin.d.ts → plugin.d.ts} +0 -0
- /package/lib/types/{types/request.d.ts → request.d.ts} +0 -0
- /package/lib/types/{types/slash.d.ts → slash.d.ts} +0 -0
- /package/lib/types/{types/toolbar.d.ts → toolbar.d.ts} +0 -0
- /package/lib/{types/ui → ui}/button.d.ts +0 -0
- /package/lib/{types/ui → ui}/dropdown.d.ts +0 -0
- /package/lib/{types/ui → ui}/mention-menu.d.ts +0 -0
- /package/lib/{types/ui → ui}/menu.d.ts +0 -0
- /package/lib/{types/ui → ui}/slash-menu.d.ts +0 -0
- /package/lib/{types/utils → utils}/append-break.d.ts +0 -0
- /package/lib/{types/utils → utils}/camel-case.d.ts +0 -0
- /package/lib/{types/utils → utils}/change-tag-name.d.ts +0 -0
- /package/lib/{types/utils → utils}/debug.d.ts +0 -0
- /package/lib/{types/utils → utils}/denormalize-value.d.ts +0 -0
- /package/lib/{types/utils → utils}/encode.d.ts +0 -0
- /package/lib/{types/utils → utils}/file-size.d.ts +0 -0
- /package/lib/{types/utils → utils}/fix-numbered-list.d.ts +0 -0
- /package/lib/{types/utils → utils}/from-base64.d.ts +0 -0
- /package/lib/{types/utils → utils}/get-box.d.ts +0 -0
- /package/lib/{types/utils → utils}/get-css.d.ts +0 -0
- /package/lib/{types/utils → utils}/get-deep-element.d.ts +0 -0
- /package/lib/{types/utils → utils}/in-string.d.ts +0 -0
- /package/lib/{types/utils → utils}/merge-nodes.d.ts +0 -0
- /package/lib/{types/utils → utils}/modifier-text.d.ts +0 -0
- /package/lib/{types/utils → utils}/morph.d.ts +0 -0
- /package/lib/{types/utils → utils}/normalize-value.d.ts +0 -0
- /package/lib/{types/utils → utils}/parse-style.d.ts +0 -0
- /package/lib/{types/utils → utils}/query.d.ts +0 -0
- /package/lib/{types/utils → utils}/remove-break.d.ts +0 -0
- /package/lib/{types/utils → utils}/remove-zws.d.ts +0 -0
- /package/lib/{types/utils → utils}/request.d.ts +0 -0
- /package/lib/{types/utils → utils}/safe-template.d.ts +0 -0
- /package/lib/{types/utils → utils}/scroll-to-node.d.ts +0 -0
- /package/lib/{types/utils → utils}/set-block-indent.d.ts +0 -0
- /package/lib/{types/utils → utils}/split-nodes.d.ts +0 -0
- /package/lib/{types/utils → utils}/template.d.ts +0 -0
- /package/lib/{types/utils → utils}/to-base64.d.ts +0 -0
- /package/lib/{types/utils → utils}/to-hex.d.ts +0 -0
- /package/lib/{types/utils → utils}/to-node-list.d.ts +0 -0
- /package/lib/{types/utils → utils}/upload-file.d.ts +0 -0
- /package/lib/{types/utils → utils}/wrap-node-list.d.ts +0 -0
package/dist/lake.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
/*
|
|
2
|
+
/* common */
|
|
3
3
|
--lake-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
|
|
4
|
-
|
|
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
|
-
/*
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
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:
|
|
1143
|
+
font-size: var(--lake-font-size);
|
|
1164
1144
|
font-weight: normal;
|
|
1165
1145
|
line-height: 0;
|
|
1166
1146
|
border: 1px solid transparent;
|
|
@@ -1404,6 +1384,28 @@ lake-box[name="mention"] .lake-box-focused .lake-mention {
|
|
|
1404
1384
|
display: none;
|
|
1405
1385
|
}
|
|
1406
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
|
+
}
|
|
1408
|
+
|
|
1407
1409
|
/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */
|
|
1408
1410
|
|
|
1409
1411
|
.pswp {
|