lakelib 0.1.24 → 0.2.0
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/README.md +2 -2
- package/dist/lake.css +6 -0
- package/dist/lake.min.js +13 -13
- package/dist/lake.min.js.map +1 -1
- package/lib/lake.css +6 -0
- package/lib/lake.js +90 -35
- package/lib/lake.js.map +1 -1
- package/lib/types/i18n/en-US/index.d.ts +1 -0
- package/lib/types/i18n/ja/index.d.ts +1 -0
- package/lib/types/i18n/ko/index.d.ts +1 -0
- package/lib/types/i18n/types.d.ts +14 -6
- package/lib/types/i18n/zh-CN/index.d.ts +1 -0
- package/lib/types/ui/slash-popup.d.ts +3 -1
- package/package.json +24 -24
|
@@ -187,7 +187,7 @@ type RootTranslation = {
|
|
|
187
187
|
*/
|
|
188
188
|
emoji: string;
|
|
189
189
|
/**
|
|
190
|
-
*
|
|
190
|
+
* Mathematical formula
|
|
191
191
|
*/
|
|
192
192
|
equation: string;
|
|
193
193
|
/**
|
|
@@ -309,11 +309,11 @@ type RootTranslation = {
|
|
|
309
309
|
*/
|
|
310
310
|
videoDesc: string;
|
|
311
311
|
/**
|
|
312
|
-
*
|
|
312
|
+
* Mathematical formula
|
|
313
313
|
*/
|
|
314
314
|
equation: string;
|
|
315
315
|
/**
|
|
316
|
-
* Insert TeX expression
|
|
316
|
+
* Insert a TeX expression
|
|
317
317
|
*/
|
|
318
318
|
equationDesc: string;
|
|
319
319
|
/**
|
|
@@ -440,6 +440,10 @@ type RootTranslation = {
|
|
|
440
440
|
* Done
|
|
441
441
|
*/
|
|
442
442
|
save: string;
|
|
443
|
+
/**
|
|
444
|
+
* Help
|
|
445
|
+
*/
|
|
446
|
+
help: string;
|
|
443
447
|
/**
|
|
444
448
|
* Type a TeX expression
|
|
445
449
|
*/
|
|
@@ -629,7 +633,7 @@ export type TranslationFunctions = {
|
|
|
629
633
|
*/
|
|
630
634
|
emoji: () => LocalizedString;
|
|
631
635
|
/**
|
|
632
|
-
*
|
|
636
|
+
* Mathematical formula
|
|
633
637
|
*/
|
|
634
638
|
equation: () => LocalizedString;
|
|
635
639
|
/**
|
|
@@ -751,11 +755,11 @@ export type TranslationFunctions = {
|
|
|
751
755
|
*/
|
|
752
756
|
videoDesc: () => LocalizedString;
|
|
753
757
|
/**
|
|
754
|
-
*
|
|
758
|
+
* Mathematical formula
|
|
755
759
|
*/
|
|
756
760
|
equation: () => LocalizedString;
|
|
757
761
|
/**
|
|
758
|
-
* Insert TeX expression
|
|
762
|
+
* Insert a TeX expression
|
|
759
763
|
*/
|
|
760
764
|
equationDesc: () => LocalizedString;
|
|
761
765
|
/**
|
|
@@ -882,6 +886,10 @@ export type TranslationFunctions = {
|
|
|
882
886
|
* Done
|
|
883
887
|
*/
|
|
884
888
|
save: () => LocalizedString;
|
|
889
|
+
/**
|
|
890
|
+
* Help
|
|
891
|
+
*/
|
|
892
|
+
help: () => LocalizedString;
|
|
885
893
|
/**
|
|
886
894
|
* Type a TeX expression
|
|
887
895
|
*/
|
|
@@ -13,6 +13,8 @@ export declare class SlashPopup {
|
|
|
13
13
|
private range;
|
|
14
14
|
private noMouseEvent;
|
|
15
15
|
private keyword;
|
|
16
|
+
private horizontalDirection;
|
|
17
|
+
private verticalDirection;
|
|
16
18
|
container: Nodes;
|
|
17
19
|
constructor(config: SlashPopupConfig);
|
|
18
20
|
private getItem;
|
|
@@ -24,7 +26,7 @@ export declare class SlashPopup {
|
|
|
24
26
|
private resizeListener;
|
|
25
27
|
get visible(): boolean;
|
|
26
28
|
search(keyword: string): (string | SlashItem)[];
|
|
27
|
-
position(): void;
|
|
29
|
+
position(keepDirection?: boolean): void;
|
|
28
30
|
render(): void;
|
|
29
31
|
update(keyword?: string | null): void;
|
|
30
32
|
show(range: Range, keyword?: string): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lakelib",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Rich text editor based on the browser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rich text",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@types/is-hotkey": "^0.1.10",
|
|
31
|
-
"debounce": "^2.1.
|
|
31
|
+
"debounce": "^2.1.1",
|
|
32
32
|
"eventemitter3": "^5.0.1",
|
|
33
33
|
"fast-deep-equal": "^3.1.3",
|
|
34
34
|
"is-hotkey": "^0.2.0",
|
|
@@ -41,37 +41,37 @@
|
|
|
41
41
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
42
42
|
"@rollup/plugin-terser": "^0.4.4",
|
|
43
43
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
44
|
-
"@types/chai": "^4.3.
|
|
45
|
-
"@types/mocha": "^10.0.
|
|
44
|
+
"@types/chai": "^4.3.19",
|
|
45
|
+
"@types/mocha": "^10.0.7",
|
|
46
46
|
"@types/sinon": "^17.0.3",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
48
|
-
"@typescript-eslint/parser": "^7.
|
|
49
|
-
"
|
|
50
|
-
"
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
48
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
49
|
+
"chai": "^4.5.0",
|
|
50
|
+
"conventional-changelog-cli": "^5.0.0",
|
|
51
51
|
"eslint": "^8.57.0",
|
|
52
52
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
53
53
|
"eslint-config-prettier": "^9.1.0",
|
|
54
|
-
"execa": "^
|
|
55
|
-
"express": "^4.
|
|
56
|
-
"katex": "^0.16.
|
|
54
|
+
"execa": "^9.3.1",
|
|
55
|
+
"express": "^4.20.0",
|
|
56
|
+
"katex": "^0.16.11",
|
|
57
57
|
"lake-codemirror": "^2.0.0",
|
|
58
|
-
"mocha": "^10.
|
|
58
|
+
"mocha": "^10.7.3",
|
|
59
59
|
"multer": "1.4.5-lts.1",
|
|
60
60
|
"npm-run-all": "^4.1.5",
|
|
61
|
-
"picocolors": "^1.0
|
|
61
|
+
"picocolors": "^1.1.0",
|
|
62
62
|
"prompts": "^2.4.2",
|
|
63
|
-
"puppeteer": "^
|
|
64
|
-
"rimraf": "^
|
|
65
|
-
"rollup": "^4.
|
|
66
|
-
"rollup-plugin-import-css": "^3.5.
|
|
63
|
+
"puppeteer": "^23.3.0",
|
|
64
|
+
"rimraf": "^6.0.1",
|
|
65
|
+
"rollup": "^4.21.2",
|
|
66
|
+
"rollup-plugin-import-css": "^3.5.1",
|
|
67
67
|
"rollup-plugin-svg-import": "^3.0.0",
|
|
68
|
-
"semver": "^7.6.
|
|
68
|
+
"semver": "^7.6.3",
|
|
69
69
|
"simple-git-hooks": "^2.11.1",
|
|
70
|
-
"sinon": "^18.0.
|
|
71
|
-
"sort-package-json": "^2.10.
|
|
72
|
-
"tslib": "^2.
|
|
73
|
-
"typescript": "^5.4
|
|
74
|
-
"wait-on": "^
|
|
70
|
+
"sinon": "^18.0.1",
|
|
71
|
+
"sort-package-json": "^2.10.1",
|
|
72
|
+
"tslib": "^2.7.0",
|
|
73
|
+
"typescript": "^5.5.4",
|
|
74
|
+
"wait-on": "^8.0.1"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"dev": "npm-run-all --parallel --print-label dev:express dev:rollup",
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
"dev:lib": "rollup --watch --config rollup.config.mjs --es",
|
|
81
81
|
"build": "rimraf ./dist ./lib && rollup --config rollup.config.mjs --iife --es",
|
|
82
82
|
"i18n": "typesafe-i18n --no-watch",
|
|
83
|
-
"cost": "bundle-phobia debounce eventemitter3 fast-deep-equal photoswipe tinykeys typesafe-i18n",
|
|
84
83
|
"sort:package": "sort-package-json",
|
|
85
84
|
"lint": "eslint . --config .eslintrc.cjs --ext \".ts,.js,.cjs,.mjs\"",
|
|
86
85
|
"test": "node ./scripts/run-tests.mjs",
|
|
87
86
|
"test:express": "node ./scripts/start-server.mjs 8081",
|
|
88
87
|
"test:rollup": "rollup --config rollup.config.mjs --test",
|
|
88
|
+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
89
89
|
"release": "node ./scripts/release.mjs"
|
|
90
90
|
}
|
|
91
91
|
}
|