lakelib 0.1.25 → 0.2.1

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
  };
@@ -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
  */
@@ -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,7 +1,7 @@
1
1
  {
2
2
  "name": "lakelib",
3
- "version": "0.1.25",
4
- "description": "Rich text editor based on the browser",
3
+ "version": "0.2.1",
4
+ "description": "Lake is a browser-based rich text editor designed for creating content such as blogs, comments, and emails.",
5
5
  "keywords": [
6
6
  "rich text",
7
7
  "wysiwyg",
@@ -24,11 +24,12 @@
24
24
  "lib"
25
25
  ],
26
26
  "simple-git-hooks": {
27
- "pre-commit": "pnpm sort:package && pnpm lint"
27
+ "pre-commit": "pnpm sort:package && pnpm lint",
28
+ "commit-msg": "node ./scripts/verify-commit.mjs"
28
29
  },
29
30
  "dependencies": {
30
31
  "@types/is-hotkey": "^0.1.10",
31
- "debounce": "^2.1.0",
32
+ "debounce": "^2.1.1",
32
33
  "eventemitter3": "^5.0.1",
33
34
  "fast-deep-equal": "^3.1.3",
34
35
  "is-hotkey": "^0.2.0",
@@ -46,18 +47,18 @@
46
47
  "@types/sinon": "^17.0.3",
47
48
  "@typescript-eslint/eslint-plugin": "^7.18.0",
48
49
  "@typescript-eslint/parser": "^7.18.0",
49
- "bundle-phobia-cli": "^0.14.14",
50
50
  "chai": "^4.5.0",
51
+ "conventional-changelog-cli": "^5.0.0",
51
52
  "eslint": "^8.57.0",
52
53
  "eslint-config-airbnb-base": "^15.0.0",
53
54
  "eslint-config-prettier": "^9.1.0",
54
55
  "execa": "^9.3.1",
55
- "express": "^4.19.2",
56
+ "express": "^4.20.0",
56
57
  "katex": "^0.16.11",
57
58
  "lake-codemirror": "^2.0.0",
58
59
  "mocha": "^10.7.3",
59
60
  "multer": "1.4.5-lts.1",
60
- "npm-run-all": "^4.1.5",
61
+ "npm-run-all2": "^6.2.2",
61
62
  "picocolors": "^1.1.0",
62
63
  "prompts": "^2.4.2",
63
64
  "puppeteer": "^23.3.0",
@@ -67,11 +68,11 @@
67
68
  "rollup-plugin-svg-import": "^3.0.0",
68
69
  "semver": "^7.6.3",
69
70
  "simple-git-hooks": "^2.11.1",
70
- "sinon": "^18.0.0",
71
+ "sinon": "^18.0.1",
71
72
  "sort-package-json": "^2.10.1",
72
73
  "tslib": "^2.7.0",
73
74
  "typescript": "^5.5.4",
74
- "wait-on": "^8.0.0"
75
+ "wait-on": "^8.0.1"
75
76
  },
76
77
  "scripts": {
77
78
  "dev": "npm-run-all --parallel --print-label dev:express dev:rollup",
@@ -80,12 +81,12 @@
80
81
  "dev:lib": "rollup --watch --config rollup.config.mjs --es",
81
82
  "build": "rimraf ./dist ./lib && rollup --config rollup.config.mjs --iife --es",
82
83
  "i18n": "typesafe-i18n --no-watch",
83
- "cost": "bundle-phobia debounce eventemitter3 fast-deep-equal is-hotkey photoswipe typesafe-i18n",
84
84
  "sort:package": "sort-package-json",
85
85
  "lint": "eslint . --config .eslintrc.cjs --ext \".ts,.js,.cjs,.mjs\"",
86
86
  "test": "node ./scripts/run-tests.mjs",
87
87
  "test:express": "node ./scripts/start-server.mjs 8081",
88
88
  "test:rollup": "rollup --config rollup.config.mjs --test",
89
+ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
89
90
  "release": "node ./scripts/release.mjs"
90
91
  }
91
92
  }