lakelib 0.4.2 → 0.4.3

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/lib/lake.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import EventEmitter from 'eventemitter3';
2
- import { LocalizedString } from 'typesafe-i18n';
2
+ import { LocalizedString, RequiredParams } from 'typesafe-i18n';
3
3
 
4
4
  type KeyValue = Record<string, string>;
5
5
 
@@ -377,6 +377,654 @@ interface SelectionState {
377
377
  selectedValuesMap?: Map<string, string[]>;
378
378
  }
379
379
 
380
+ type Translation = RootTranslation;
381
+ type RootTranslation = {
382
+ toolbar: {
383
+ /**
384
+ * U​n​d​o​ ​(​m​o​d​+​Z​)
385
+ */
386
+ undo: string;
387
+ /**
388
+ * R​e​d​o​ ​(​m​o​d​+​Y​)
389
+ */
390
+ redo: string;
391
+ /**
392
+ * S​e​l​e​c​t​ ​a​l​l​ ​(​m​o​d​+​A​)
393
+ */
394
+ selectAll: string;
395
+ /**
396
+ * P​a​r​a​g​r​a​p​h
397
+ */
398
+ paragraph: string;
399
+ /**
400
+ * B​l​o​c​k​ ​q​u​o​t​a​t​i​o​n
401
+ */
402
+ blockQuote: string;
403
+ /**
404
+ * N​u​m​b​e​r​e​d​ ​l​i​s​t
405
+ */
406
+ numberedList: string;
407
+ /**
408
+ * B​u​l​l​e​t​e​d​ ​l​i​s​t
409
+ */
410
+ bulletedList: string;
411
+ /**
412
+ * C​h​e​c​k​l​i​s​t
413
+ */
414
+ checklist: string;
415
+ /**
416
+ * A​l​i​g​n​ ​l​e​f​t
417
+ */
418
+ alignLeft: string;
419
+ /**
420
+ * A​l​i​g​n​ ​c​e​n​t​e​r
421
+ */
422
+ alignCenter: string;
423
+ /**
424
+ * A​l​i​g​n​ ​r​i​g​h​t
425
+ */
426
+ alignRight: string;
427
+ /**
428
+ * J​u​s​t​i​f​y
429
+ */
430
+ alignJustify: string;
431
+ /**
432
+ * I​n​c​r​e​a​s​e​ ​i​n​d​e​n​t
433
+ */
434
+ increaseIndent: string;
435
+ /**
436
+ * D​e​c​r​e​a​s​e​ ​i​n​d​e​n​t
437
+ */
438
+ decreaseIndent: string;
439
+ /**
440
+ * B​o​l​d​ ​(​m​o​d​+​B​)
441
+ */
442
+ bold: string;
443
+ /**
444
+ * I​t​a​l​i​c​ ​(​m​o​d​+​I​)
445
+ */
446
+ italic: string;
447
+ /**
448
+ * U​n​d​e​r​l​i​n​e​ ​(​m​o​d​+​U​)
449
+ */
450
+ underline: string;
451
+ /**
452
+ * S​t​r​i​k​e​t​h​r​o​u​g​h
453
+ */
454
+ strikethrough: string;
455
+ /**
456
+ * S​u​p​e​r​s​c​r​i​p​t
457
+ */
458
+ superscript: string;
459
+ /**
460
+ * S​u​b​s​c​r​i​p​t
461
+ */
462
+ subscript: string;
463
+ /**
464
+ * I​n​l​i​n​e​ ​c​o​d​e
465
+ */
466
+ code: string;
467
+ /**
468
+ * R​e​m​o​v​e​ ​f​o​r​m​a​t
469
+ */
470
+ removeFormat: string;
471
+ /**
472
+ * F​o​r​m​a​t​ ​p​a​i​n​t​e​r
473
+ */
474
+ formatPainter: string;
475
+ /**
476
+ * L​i​n​k
477
+ */
478
+ link: string;
479
+ /**
480
+ * H​o​r​i​z​o​n​t​a​l​ ​l​i​n​e
481
+ */
482
+ hr: string;
483
+ /**
484
+ * V​i​d​e​o
485
+ */
486
+ video: string;
487
+ /**
488
+ * C​o​d​e​ ​b​l​o​c​k
489
+ */
490
+ codeBlock: string;
491
+ /**
492
+ * H​e​a​d​i​n​g
493
+ */
494
+ heading: string;
495
+ /**
496
+ * H​e​a​d​i​n​g​ ​1
497
+ */
498
+ heading1: string;
499
+ /**
500
+ * H​e​a​d​i​n​g​ ​2
501
+ */
502
+ heading2: string;
503
+ /**
504
+ * H​e​a​d​i​n​g​ ​3
505
+ */
506
+ heading3: string;
507
+ /**
508
+ * H​e​a​d​i​n​g​ ​4
509
+ */
510
+ heading4: string;
511
+ /**
512
+ * H​e​a​d​i​n​g​ ​5
513
+ */
514
+ heading5: string;
515
+ /**
516
+ * H​e​a​d​i​n​g​ ​6
517
+ */
518
+ heading6: string;
519
+ /**
520
+ * L​i​s​t
521
+ */
522
+ list: string;
523
+ /**
524
+ * T​a​b​l​e
525
+ */
526
+ table: string;
527
+ /**
528
+ * A​l​i​g​n​m​e​n​t
529
+ */
530
+ align: string;
531
+ /**
532
+ * I​n​d​e​n​t
533
+ */
534
+ indent: string;
535
+ /**
536
+ * F​o​n​t​ ​f​a​m​i​l​y
537
+ */
538
+ fontFamily: string;
539
+ /**
540
+ * F​o​n​t​ ​s​i​z​e
541
+ */
542
+ fontSize: string;
543
+ /**
544
+ * M​o​r​e​ ​s​t​y​l​e
545
+ */
546
+ moreStyle: string;
547
+ /**
548
+ * F​o​n​t​ ​c​o​l​o​r
549
+ */
550
+ fontColor: string;
551
+ /**
552
+ * H​i​g​h​l​i​g​h​t
553
+ */
554
+ highlight: string;
555
+ /**
556
+ * I​m​a​g​e
557
+ */
558
+ image: string;
559
+ /**
560
+ * F​i​l​e
561
+ */
562
+ file: string;
563
+ /**
564
+ * E​m​o​j​i
565
+ */
566
+ emoji: string;
567
+ /**
568
+ * M​a​t​h​e​m​a​t​i​c​a​l​ ​f​o​r​m​u​l​a
569
+ */
570
+ equation: string;
571
+ /**
572
+ * X​ ​(​T​w​i​t​t​e​r​)
573
+ */
574
+ twitter: string;
575
+ /**
576
+ * R​e​m​o​v​e​ ​c​o​l​o​r
577
+ */
578
+ removeColor: string;
579
+ };
580
+ slash: {
581
+ /**
582
+ * H​e​a​d​i​n​g​ ​1
583
+ */
584
+ heading1: string;
585
+ /**
586
+ * C​r​e​a​t​e​ ​a​ ​h​e​a​d​i​n​g​ ​l​e​v​e​l​ ​1
587
+ */
588
+ heading1Desc: string;
589
+ /**
590
+ * H​e​a​d​i​n​g​ ​2
591
+ */
592
+ heading2: string;
593
+ /**
594
+ * C​r​e​a​t​e​ ​a​ ​h​e​a​d​i​n​g​ ​l​e​v​e​l​ ​2
595
+ */
596
+ heading2Desc: string;
597
+ /**
598
+ * H​e​a​d​i​n​g​ ​3
599
+ */
600
+ heading3: string;
601
+ /**
602
+ * C​r​e​a​t​e​ ​a​ ​h​e​a​d​i​n​g​ ​l​e​v​e​l​ ​3
603
+ */
604
+ heading3Desc: string;
605
+ /**
606
+ * H​e​a​d​i​n​g​ ​4
607
+ */
608
+ heading4: string;
609
+ /**
610
+ * C​r​e​a​t​e​ ​a​ ​h​e​a​d​i​n​g​ ​l​e​v​e​l​ ​4
611
+ */
612
+ heading4Desc: string;
613
+ /**
614
+ * H​e​a​d​i​n​g​ ​5
615
+ */
616
+ heading5: string;
617
+ /**
618
+ * C​r​e​a​t​e​ ​a​ ​h​e​a​d​i​n​g​ ​l​e​v​e​l​ ​5
619
+ */
620
+ heading5Desc: string;
621
+ /**
622
+ * H​e​a​d​i​n​g​ ​6
623
+ */
624
+ heading6: string;
625
+ /**
626
+ * C​r​e​a​t​e​ ​a​ ​h​e​a​d​i​n​g​ ​l​e​v​e​l​ ​6
627
+ */
628
+ heading6Desc: string;
629
+ /**
630
+ * P​a​r​a​g​r​a​p​h
631
+ */
632
+ paragraph: string;
633
+ /**
634
+ * C​r​e​a​t​e​ ​a​ ​p​a​r​a​g​r​a​p​h
635
+ */
636
+ paragraphDesc: string;
637
+ /**
638
+ * B​l​o​c​k​ ​q​u​o​t​a​t​i​o​n
639
+ */
640
+ blockQuote: string;
641
+ /**
642
+ * C​r​e​a​t​e​ ​a​ ​b​l​o​c​k​ ​q​u​o​t​a​t​i​o​n
643
+ */
644
+ blockQuoteDesc: string;
645
+ /**
646
+ * N​u​m​b​e​r​e​d​ ​l​i​s​t
647
+ */
648
+ numberedList: string;
649
+ /**
650
+ * C​r​e​a​t​e​ ​a​ ​n​u​m​b​e​r​e​d​ ​l​i​s​t
651
+ */
652
+ numberedListDesc: string;
653
+ /**
654
+ * B​u​l​l​e​t​e​d​ ​l​i​s​t
655
+ */
656
+ bulletedList: string;
657
+ /**
658
+ * C​r​e​a​t​e​ ​a​ ​b​u​l​l​e​t​e​d​ ​l​i​s​t
659
+ */
660
+ bulletedListDesc: string;
661
+ /**
662
+ * C​h​e​c​k​l​i​s​t
663
+ */
664
+ checklist: string;
665
+ /**
666
+ * C​r​e​a​t​e​ ​a​ ​c​h​e​c​k​l​i​s​t
667
+ */
668
+ checklistDesc: string;
669
+ /**
670
+ * T​a​b​l​e
671
+ */
672
+ table: string;
673
+ /**
674
+ * I​n​s​e​r​t​ ​a​ ​t​a​b​l​e
675
+ */
676
+ tableDesc: string;
677
+ /**
678
+ * I​n​f​o​ ​a​l​e​r​t
679
+ */
680
+ infoAlert: string;
681
+ /**
682
+ * C​r​e​a​t​e​ ​a​n​ ​i​n​f​o​ ​a​l​e​r​t
683
+ */
684
+ infoAlertDesc: string;
685
+ /**
686
+ * T​i​p​ ​a​l​e​r​t
687
+ */
688
+ tipAlert: string;
689
+ /**
690
+ * C​r​e​a​t​e​ ​a​ ​t​i​p​ ​a​l​e​r​t
691
+ */
692
+ tipAlertDesc: string;
693
+ /**
694
+ * W​a​r​n​i​n​g​ ​a​l​e​r​t
695
+ */
696
+ warningAlert: string;
697
+ /**
698
+ * C​r​e​a​t​e​ ​a​ ​w​a​r​n​i​n​g​ ​a​l​e​r​t
699
+ */
700
+ warningAlertDesc: string;
701
+ /**
702
+ * D​a​n​g​e​r​ ​a​l​e​r​t
703
+ */
704
+ dangerAlert: string;
705
+ /**
706
+ * C​r​e​a​t​e​ ​a​ ​d​a​n​g​e​r​ ​a​l​e​r​t
707
+ */
708
+ dangerAlertDesc: string;
709
+ /**
710
+ * H​o​r​i​z​o​n​t​a​l​ ​l​i​n​e
711
+ */
712
+ hr: string;
713
+ /**
714
+ * I​n​s​e​r​t​ ​a​ ​h​o​r​i​z​o​n​t​a​l​ ​l​i​n​e
715
+ */
716
+ hrDesc: string;
717
+ /**
718
+ * C​o​d​e​ ​b​l​o​c​k
719
+ */
720
+ codeBlock: string;
721
+ /**
722
+ * I​n​s​e​r​t​ ​a​ ​c​o​d​e​ ​b​l​o​c​k
723
+ */
724
+ codeBlockDesc: string;
725
+ /**
726
+ * V​i​d​e​o
727
+ */
728
+ video: string;
729
+ /**
730
+ * I​n​s​e​r​t​ ​a​ ​v​i​d​e​o​ ​f​r​o​m​ ​Y​o​u​T​u​b​e
731
+ */
732
+ videoDesc: string;
733
+ /**
734
+ * M​a​t​h​e​m​a​t​i​c​a​l​ ​f​o​r​m​u​l​a
735
+ */
736
+ equation: string;
737
+ /**
738
+ * I​n​s​e​r​t​ ​a​ ​T​e​X​ ​e​x​p​r​e​s​s​i​o​n
739
+ */
740
+ equationDesc: string;
741
+ /**
742
+ * T​w​i​t​t​e​r
743
+ */
744
+ twitter: string;
745
+ /**
746
+ * I​n​s​e​r​t​ ​a​ ​p​o​s​t​ ​f​r​o​m​ ​X​ ​(​T​w​i​t​t​e​r​)
747
+ */
748
+ twitterDesc: string;
749
+ /**
750
+ * I​m​a​g​e
751
+ */
752
+ image: string;
753
+ /**
754
+ * U​p​l​o​a​d​ ​a​n​ ​i​m​a​g​e
755
+ */
756
+ imageDesc: string;
757
+ /**
758
+ * F​i​l​e
759
+ */
760
+ file: string;
761
+ /**
762
+ * U​p​l​o​a​d​ ​a​ ​f​i​l​e
763
+ */
764
+ fileDesc: string;
765
+ };
766
+ link: {
767
+ /**
768
+ * N​e​w​ ​l​i​n​k
769
+ */
770
+ newLink: string;
771
+ /**
772
+ * L​i​n​k​ ​U​R​L
773
+ */
774
+ url: string;
775
+ /**
776
+ * T​e​x​t​ ​t​o​ ​d​i​s​p​l​a​y
777
+ */
778
+ title: string;
779
+ /**
780
+ * C​o​p​y​ ​l​i​n​k​ ​t​o​ ​c​l​i​p​b​o​a​r​d
781
+ */
782
+ copy: string;
783
+ /**
784
+ * O​p​e​n​ ​l​i​n​k​ ​i​n​ ​n​e​w​ ​t​a​b
785
+ */
786
+ open: string;
787
+ /**
788
+ * S​a​v​e
789
+ */
790
+ save: string;
791
+ /**
792
+ * R​e​m​o​v​e​ ​l​i​n​k
793
+ */
794
+ unlink: string;
795
+ };
796
+ table: {
797
+ /**
798
+ * F​i​t​ ​t​a​b​l​e​ ​t​o​ ​p​a​g​e​ ​w​i​d​t​h
799
+ */
800
+ fitTable: string;
801
+ /**
802
+ * C​e​l​l​ ​b​a​c​k​g​r​o​u​n​d​ ​c​o​l​o​r
803
+ */
804
+ cellBackground: string;
805
+ /**
806
+ * C​o​l​u​m​n
807
+ */
808
+ column: string;
809
+ /**
810
+ * I​n​s​e​r​t​ ​c​o​l​u​m​n​ ​l​e​f​t
811
+ */
812
+ insertColumnLeft: string;
813
+ /**
814
+ * I​n​s​e​r​t​ ​c​o​l​u​m​n​ ​r​i​g​h​t
815
+ */
816
+ insertColumnRight: string;
817
+ /**
818
+ * D​e​l​e​t​e​ ​c​o​l​u​m​n
819
+ */
820
+ deleteColumn: string;
821
+ /**
822
+ * R​o​w
823
+ */
824
+ row: string;
825
+ /**
826
+ * I​n​s​e​r​t​ ​r​o​w​ ​a​b​o​v​e
827
+ */
828
+ insertRowAbove: string;
829
+ /**
830
+ * I​n​s​e​r​t​ ​r​o​w​ ​b​e​l​o​w
831
+ */
832
+ insertRowBelow: string;
833
+ /**
834
+ * D​e​l​e​t​e​ ​r​o​w
835
+ */
836
+ deleteRow: string;
837
+ /**
838
+ * M​e​r​g​e​ ​c​e​l​l​s
839
+ */
840
+ merge: string;
841
+ /**
842
+ * M​e​r​g​e​ ​c​e​l​l​ ​u​p
843
+ */
844
+ mergeUp: string;
845
+ /**
846
+ * M​e​r​g​e​ ​c​e​l​l​ ​r​i​g​h​t
847
+ */
848
+ mergeRight: string;
849
+ /**
850
+ * M​e​r​g​e​ ​c​e​l​l​ ​d​o​w​n
851
+ */
852
+ mergeDown: string;
853
+ /**
854
+ * M​e​r​g​e​ ​c​e​l​l​ ​l​e​f​t
855
+ */
856
+ mergeLeft: string;
857
+ /**
858
+ * S​p​l​i​t​ ​c​e​l​l
859
+ */
860
+ split: string;
861
+ /**
862
+ * S​p​l​i​t​ ​c​e​l​l​ ​l​e​f​t​ ​a​n​d​ ​r​i​g​h​t
863
+ */
864
+ splitLeftRight: string;
865
+ /**
866
+ * S​p​l​i​t​ ​c​e​l​l​ ​t​o​p​ ​a​n​d​ ​b​o​t​t​o​m
867
+ */
868
+ splitTopBottom: string;
869
+ /**
870
+ * R​e​m​o​v​e​ ​t​a​b​l​e
871
+ */
872
+ remove: string;
873
+ };
874
+ image: {
875
+ /**
876
+ * F​u​l​l​ ​s​c​r​e​e​n
877
+ */
878
+ view: string;
879
+ /**
880
+ * D​e​l​e​t​e
881
+ */
882
+ remove: string;
883
+ /**
884
+ * P​r​e​v​i​o​u​s
885
+ */
886
+ previous: string;
887
+ /**
888
+ * N​e​x​t
889
+ */
890
+ next: string;
891
+ /**
892
+ * C​l​o​s​e​ ​(​E​s​c​)
893
+ */
894
+ close: string;
895
+ /**
896
+ * U​n​a​b​l​e​ ​t​o​ ​l​o​a​d​ ​i​m​a​g​e​.
897
+ */
898
+ loadingError: string;
899
+ /**
900
+ * Z​o​o​m​ ​o​u​t
901
+ */
902
+ zoomOut: string;
903
+ /**
904
+ * Z​o​o​m​ ​i​n
905
+ */
906
+ zoomIn: string;
907
+ /**
908
+ * A​l​i​g​n​m​e​n​t
909
+ */
910
+ align: string;
911
+ /**
912
+ * A​l​i​g​n​ ​l​e​f​t
913
+ */
914
+ alignLeft: string;
915
+ /**
916
+ * A​l​i​g​n​ ​c​e​n​t​e​r
917
+ */
918
+ alignCenter: string;
919
+ /**
920
+ * A​l​i​g​n​ ​r​i​g​h​t
921
+ */
922
+ alignRight: string;
923
+ /**
924
+ * R​e​s​i​z​e​ ​i​m​a​g​e
925
+ */
926
+ resize: string;
927
+ /**
928
+ * P​a​g​e​ ​w​i​d​t​h
929
+ */
930
+ pageWidth: string;
931
+ /**
932
+ * O​r​i​g​i​n​a​l​ ​i​m​a​g​e​ ​w​i​d​t​h
933
+ */
934
+ originalWidth: string;
935
+ /**
936
+ * {​0​}​ ​i​m​a​g​e​ ​w​i​d​t​h
937
+ * @param {unknown} 0
938
+ */
939
+ imageWidth: RequiredParams<'0'>;
940
+ /**
941
+ * O​p​e​n​ ​i​m​a​g​e​ ​i​n​ ​n​e​w​ ​t​a​b
942
+ */
943
+ open: string;
944
+ /**
945
+ * C​a​p​t​i​o​n
946
+ */
947
+ caption: string;
948
+ /**
949
+ * W​r​i​t​e​ ​a​ ​c​a​p​t​i​o​n​.​.​.
950
+ */
951
+ captionPlaceholder: string;
952
+ };
953
+ file: {
954
+ /**
955
+ * D​o​w​n​l​o​a​d
956
+ */
957
+ download: string;
958
+ /**
959
+ * D​e​l​e​t​e
960
+ */
961
+ remove: string;
962
+ };
963
+ video: {
964
+ /**
965
+ * E​m​b​e​d​ ​v​i​d​e​o
966
+ */
967
+ embed: string;
968
+ /**
969
+ * D​e​l​e​t​e
970
+ */
971
+ remove: string;
972
+ /**
973
+ * P​a​s​t​e​ ​a​ ​l​i​n​k​ ​t​o​ ​e​m​b​e​d​ ​a​ ​v​i​d​e​o​ ​f​r​o​m​ ​Y​o​u​T​u​b​e​.
974
+ */
975
+ description: string;
976
+ /**
977
+ * L​i​n​k
978
+ */
979
+ url: string;
980
+ /**
981
+ * P​l​e​a​s​e​ ​e​n​t​e​r​ ​a​ ​v​a​l​i​d​ ​l​i​n​k​.
982
+ */
983
+ urlError: string;
984
+ };
985
+ codeBlock: {
986
+ /**
987
+ * S​e​l​e​c​t​ ​l​a​n​g​u​a​g​e
988
+ */
989
+ langType: string;
990
+ };
991
+ equation: {
992
+ /**
993
+ * D​o​n​e
994
+ */
995
+ save: string;
996
+ /**
997
+ * S​u​p​p​o​r​t​e​d​ ​f​u​n​c​t​i​o​n​s
998
+ */
999
+ help: string;
1000
+ /**
1001
+ * T​y​p​e​ ​a​ ​T​e​X​ ​e​x​p​r​e​s​s​i​o​n​.​.​.
1002
+ */
1003
+ placeholder: string;
1004
+ };
1005
+ twitter: {
1006
+ /**
1007
+ * E​m​b​e​d​ ​T​w​e​e​t
1008
+ */
1009
+ embed: string;
1010
+ /**
1011
+ * D​e​l​e​t​e
1012
+ */
1013
+ remove: string;
1014
+ /**
1015
+ * P​a​s​t​e​ ​a​ ​l​i​n​k​ ​t​o​ ​e​m​b​e​d​ ​a​ ​p​o​s​t​ ​f​r​o​m​ ​X​.
1016
+ */
1017
+ description: string;
1018
+ /**
1019
+ * L​i​n​k
1020
+ */
1021
+ url: string;
1022
+ /**
1023
+ * P​l​e​a​s​e​ ​e​n​t​e​r​ ​a​ ​v​a​l​i​d​ ​l​i​n​k​.
1024
+ */
1025
+ urlError: string;
1026
+ };
1027
+ };
380
1028
  type TranslationFunctions = {
381
1029
  toolbar: {
382
1030
  /**
@@ -1024,6 +1672,21 @@ type TranslationFunctions = {
1024
1672
  };
1025
1673
  };
1026
1674
 
1675
+ /**
1676
+ * The LocaleManager interface manages a collection of Translation objects.
1677
+ * It allows you to add and retrieve the names of locales.
1678
+ */
1679
+ declare class LocaleManager {
1680
+ /**
1681
+ * Adds a Translation to the collection.
1682
+ */
1683
+ add(locale: string, translation: Translation): void;
1684
+ /**
1685
+ * Returns a list of all locale names.
1686
+ */
1687
+ getNames(): string[];
1688
+ }
1689
+
1027
1690
  type NativeRange = Range;
1028
1691
 
1029
1692
  /**
@@ -1671,6 +2334,10 @@ interface ToolbarConfig {
1671
2334
  root?: string | Node | Nodes;
1672
2335
  items?: (string | ToolbarItem)[];
1673
2336
  placement?: ToolbarPlacement;
2337
+ fontFamily?: {
2338
+ defaultValue: string;
2339
+ menuItems: DropdownMenuItem[];
2340
+ };
1674
2341
  }
1675
2342
  /**
1676
2343
  * The Toolbar interface provides properties and methods for rendering and manipulating the toolbar.
@@ -1678,6 +2345,7 @@ interface ToolbarConfig {
1678
2345
  declare class Toolbar {
1679
2346
  private items;
1680
2347
  private placement;
2348
+ private toolbarItemMap;
1681
2349
  private allMenuMap;
1682
2350
  private buttonItemList;
1683
2351
  private dropdownItemList;
@@ -1758,6 +2426,10 @@ declare class Editor {
1758
2426
  * The current version of Lake.
1759
2427
  */
1760
2428
  static readonly version: string;
2429
+ /**
2430
+ * A LocaleManager object that manages the locale translations.
2431
+ */
2432
+ static readonly locale: LocaleManager;
1761
2433
  /**
1762
2434
  * A BoxManager object that manages the box components.
1763
2435
  */
@@ -1909,6 +2581,10 @@ declare class Editor {
1909
2581
  * Returns the editor's content.
1910
2582
  */
1911
2583
  getValue(): string;
2584
+ /**
2585
+ * Returns the editor's content in HTML format.
2586
+ */
2587
+ getHTML(): string;
1912
2588
  /**
1913
2589
  * Renders an editing area and sets default content to it.
1914
2590
  */
@@ -1996,14 +2672,14 @@ declare class Box {
1996
2672
 
1997
2673
  type BoxType = 'inline' | 'block';
1998
2674
  type BoxValue = Record<string, any>;
1999
- type BoxRender = (box: Box) => Nodes | string | void;
2000
- type BoxHTML = (box: Box) => string;
2675
+ type RenderBox = (box: Box) => Nodes | string | void;
2676
+ type RenderBoxHTML = (box: Box) => string;
2001
2677
  interface BoxComponent {
2002
2678
  type: BoxType;
2003
2679
  name: string;
2004
2680
  value?: BoxValue;
2005
- render: BoxRender;
2006
- html?: BoxHTML;
2681
+ render: RenderBox;
2682
+ html?: RenderBoxHTML;
2007
2683
  }
2008
2684
 
2009
2685
  interface MentionItem {
@@ -2132,6 +2808,8 @@ interface IframeBoxConfig {
2132
2808
  */
2133
2809
  declare function createIframeBox(config: IframeBoxConfig): BoxComponent;
2134
2810
 
2811
+ declare function modifierText(value: string, userAgent?: string): string;
2812
+
2135
2813
  /**
2136
2814
  * The HTMLParser interface provides the ability to parse an HTML string according to specified rules.
2137
2815
  */
@@ -2263,5 +2941,5 @@ declare class Dropdown {
2263
2941
  unmount(): void;
2264
2942
  }
2265
2943
 
2266
- export { Box, Button, Dropdown, Editor, Fragment, HTMLParser, Nodes, Range$1 as Range, TextParser, Toolbar, addMark, createIframeBox, deleteContents, getBox, getContentRules, icons, insertBlock, insertBookmark, insertBox, insertContents, query, removeBox, removeMark, setBlocks, splitBlock, splitMarks, template, toBookmark, toHex };
2267
- export type { ActiveItem, BoxComponent, BoxValue, CommandItem, ContentRules, DropdownItem, DropdownMenuItem, EditorConfig, InitializePlugin, KeyValue, MentionItem, NodePath, SelectionState, SlashButtonItem, SlashItem, SlashUploadItem, ToolbarButtonItem, ToolbarConfig, ToolbarDropdownItem, ToolbarItem, ToolbarUploadItem, UnmountPlugin };
2944
+ export { Box, Button, Dropdown, Editor, Fragment, HTMLParser, Nodes, Range$1 as Range, TextParser, Toolbar, addMark, createIframeBox, deleteContents, getBox, getContentRules, icons, insertBlock, insertBookmark, insertBox, insertContents, modifierText, query, removeBox, removeMark, setBlocks, splitBlock, splitMarks, template, toBookmark, toHex };
2945
+ export type { ActiveItem, BoxComponent, BoxValue, CommandItem, ContentRules, DropdownItem, DropdownMenuItem, EditorConfig, InitializePlugin, KeyValue, MentionItem, NodePath, SelectionState, SlashButtonItem, SlashItem, SlashUploadItem, ToolbarButtonItem, ToolbarConfig, ToolbarDropdownItem, ToolbarItem, ToolbarUploadItem, Translation, UnmountPlugin };