lakelib 0.2.3 → 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 +164 -166
- package/dist/lake.min.js +36 -36
- 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 +164 -166
- package/lib/lake.js +4660 -4510
- 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
|
@@ -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
|
-
*
|
|
54
|
+
* Justify
|
|
55
55
|
*/
|
|
56
56
|
alignJustify: string;
|
|
57
57
|
/**
|
|
@@ -343,7 +343,7 @@ type RootTranslation = {
|
|
|
343
343
|
*/
|
|
344
344
|
url: string;
|
|
345
345
|
/**
|
|
346
|
-
*
|
|
346
|
+
* Text to display
|
|
347
347
|
*/
|
|
348
348
|
title: string;
|
|
349
349
|
/**
|
|
@@ -385,7 +385,7 @@ type RootTranslation = {
|
|
|
385
385
|
*/
|
|
386
386
|
close: string;
|
|
387
387
|
/**
|
|
388
|
-
*
|
|
388
|
+
* Unable to load image.
|
|
389
389
|
*/
|
|
390
390
|
loadingError: string;
|
|
391
391
|
/**
|
|
@@ -396,6 +396,43 @@ type RootTranslation = {
|
|
|
396
396
|
* Zoom in
|
|
397
397
|
*/
|
|
398
398
|
zoomIn: string;
|
|
399
|
+
/**
|
|
400
|
+
* Alignment
|
|
401
|
+
*/
|
|
402
|
+
align: string;
|
|
403
|
+
/**
|
|
404
|
+
* Align left
|
|
405
|
+
*/
|
|
406
|
+
alignLeft: string;
|
|
407
|
+
/**
|
|
408
|
+
* Align center
|
|
409
|
+
*/
|
|
410
|
+
alignCenter: string;
|
|
411
|
+
/**
|
|
412
|
+
* Align right
|
|
413
|
+
*/
|
|
414
|
+
alignRight: string;
|
|
415
|
+
/**
|
|
416
|
+
* Resize image
|
|
417
|
+
*/
|
|
418
|
+
resize: string;
|
|
419
|
+
/**
|
|
420
|
+
* Page width
|
|
421
|
+
*/
|
|
422
|
+
pageWidth: string;
|
|
423
|
+
/**
|
|
424
|
+
* Original width
|
|
425
|
+
*/
|
|
426
|
+
originalWidth: string;
|
|
427
|
+
/**
|
|
428
|
+
* {0} image width
|
|
429
|
+
* @param {unknown} 0
|
|
430
|
+
*/
|
|
431
|
+
imageWidth: RequiredParams<'0'>;
|
|
432
|
+
/**
|
|
433
|
+
* Open image in new tab
|
|
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
|
-
*
|
|
481
|
+
* Supported functions
|
|
445
482
|
*/
|
|
446
483
|
help: string;
|
|
447
484
|
/**
|
|
@@ -497,7 +534,7 @@ export type TranslationFunctions = {
|
|
|
497
534
|
*/
|
|
498
535
|
alignRight: () => LocalizedString;
|
|
499
536
|
/**
|
|
500
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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;
|