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.
Files changed (162) hide show
  1. package/dist/lake.css +164 -166
  2. package/dist/lake.min.js +36 -36
  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 +164 -166
  11. package/lib/lake.js +4660 -4510
  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;