lakelib 0.1.25 → 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 +76 -21
- 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 +8 -0
- package/lib/types/i18n/zh-CN/index.d.ts +1 -0
- package/lib/types/ui/slash-popup.d.ts +3 -1
- package/package.json +7 -7
|
@@ -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
|
*/
|
|
@@ -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",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"@types/sinon": "^17.0.3",
|
|
47
47
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
48
48
|
"@typescript-eslint/parser": "^7.18.0",
|
|
49
|
-
"bundle-phobia-cli": "^0.14.14",
|
|
50
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
54
|
"execa": "^9.3.1",
|
|
55
|
-
"express": "^4.
|
|
55
|
+
"express": "^4.20.0",
|
|
56
56
|
"katex": "^0.16.11",
|
|
57
57
|
"lake-codemirror": "^2.0.0",
|
|
58
58
|
"mocha": "^10.7.3",
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
"rollup-plugin-svg-import": "^3.0.0",
|
|
68
68
|
"semver": "^7.6.3",
|
|
69
69
|
"simple-git-hooks": "^2.11.1",
|
|
70
|
-
"sinon": "^18.0.
|
|
70
|
+
"sinon": "^18.0.1",
|
|
71
71
|
"sort-package-json": "^2.10.1",
|
|
72
72
|
"tslib": "^2.7.0",
|
|
73
73
|
"typescript": "^5.5.4",
|
|
74
|
-
"wait-on": "^8.0.
|
|
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 is-hotkey photoswipe 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
|
}
|