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.
@@ -119,6 +119,7 @@ declare const _default: {
119
119
  };
120
120
  equation: {
121
121
  save: string;
122
+ help: string;
122
123
  placeholder: string;
123
124
  };
124
125
  };
@@ -119,6 +119,7 @@ declare const _default: {
119
119
  };
120
120
  equation: {
121
121
  save: string;
122
+ help: string;
122
123
  placeholder: string;
123
124
  };
124
125
  };
@@ -119,6 +119,7 @@ declare const _default: {
119
119
  };
120
120
  equation: {
121
121
  save: string;
122
+ help: string;
122
123
  placeholder: string;
123
124
  };
124
125
  };
@@ -187,7 +187,7 @@ type RootTranslation = {
187
187
  */
188
188
  emoji: string;
189
189
  /**
190
- * Equ​a​t​i​o​n
190
+ * Math​e​m​a​t​i​c​a​l​ ​f​o​r​m​u​l​a
191
191
  */
192
192
  equation: string;
193
193
  /**
@@ -309,11 +309,11 @@ type RootTranslation = {
309
309
  */
310
310
  videoDesc: string;
311
311
  /**
312
- * Equ​a​t​i​o​n
312
+ * Math​e​m​a​t​i​c​a​l​ ​f​o​r​m​u​l​a
313
313
  */
314
314
  equation: string;
315
315
  /**
316
- * I​n​s​e​r​t​ ​T​e​X​ ​e​x​p​r​e​s​s​i​o​n​ ​i​n​ ​t​e​x​t
316
+ * I​n​s​e​r​t​ ​a​ ​T​e​X​ ​e​x​p​r​e​s​s​i​o​n
317
317
  */
318
318
  equationDesc: string;
319
319
  /**
@@ -440,6 +440,10 @@ type RootTranslation = {
440
440
  * D​o​n​e
441
441
  */
442
442
  save: string;
443
+ /**
444
+ * H​e​l​p
445
+ */
446
+ help: string;
443
447
  /**
444
448
  * T​y​p​e​ ​a​ ​T​e​X​ ​e​x​p​r​e​s​s​i​o​n
445
449
  */
@@ -629,7 +633,7 @@ export type TranslationFunctions = {
629
633
  */
630
634
  emoji: () => LocalizedString;
631
635
  /**
632
- * Equation
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
- * Equation
758
+ * Mathematical formula
755
759
  */
756
760
  equation: () => LocalizedString;
757
761
  /**
758
- * Insert TeX expression in text
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
  */
@@ -119,6 +119,7 @@ declare const _default: {
119
119
  };
120
120
  equation: {
121
121
  save: string;
122
+ help: string;
122
123
  placeholder: string;
123
124
  };
124
125
  };
@@ -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.1.24",
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.0",
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.16",
45
- "@types/mocha": "^10.0.6",
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.13.1",
48
- "@typescript-eslint/parser": "^7.13.1",
49
- "bundle-phobia-cli": "^0.14.14",
50
- "chai": "^4.4.1",
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": "^8.0.1",
55
- "express": "^4.19.2",
56
- "katex": "^0.16.10",
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.4.0",
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.1",
61
+ "picocolors": "^1.1.0",
62
62
  "prompts": "^2.4.2",
63
- "puppeteer": "^22.11.2",
64
- "rimraf": "^5.0.7",
65
- "rollup": "^4.18.0",
66
- "rollup-plugin-import-css": "^3.5.0",
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.2",
68
+ "semver": "^7.6.3",
69
69
  "simple-git-hooks": "^2.11.1",
70
- "sinon": "^18.0.0",
71
- "sort-package-json": "^2.10.0",
72
- "tslib": "^2.6.3",
73
- "typescript": "^5.4.5",
74
- "wait-on": "^7.2.0"
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
  }