Skip to content

Commit 63771d1

Browse files
authored
Merge pull request #774 from streamich/tsconfig-update
`tsconfig` update
2 parents e7c3c41 + 38c0e0c commit 63771d1

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@
7373
},
7474
"files": [
7575
"LICENSE",
76-
"lib/"
76+
"bin/",
77+
"lib/",
78+
"esm/"
7779
],
7880
"scripts": {
7981
"format": "biome format ./src",
@@ -82,7 +84,8 @@
8284
"lint:fix": "biome lint --apply ./src",
8385
"clean": "npx rimraf@5.0.5 lib es6 es2019 es2020 esm typedocs coverage gh-pages yarn-error.log src/**/__bench__/node_modules src/**/__bench__/yarn-error.log",
8486
"build:es2020": "tsc --project tsconfig.build.json --module commonjs --target es2020 --outDir lib",
85-
"build:all": "npx concurrently@8.2.2 \"yarn build:es2020\"",
87+
"build:esm": "tsc --project tsconfig.build.json --module ESNext --target ESNEXT --outDir esm",
88+
"build:all": "npx concurrently@8.2.2 \"yarn build:es2020\" \"yarn build:esm\"",
8689
"build": "yarn build:es2020",
8790
"jest": "jest",
8891
"test": "jest --maxWorkers 7",
@@ -142,7 +145,7 @@
142145
"@types/react": "^18.3.11",
143146
"@types/react-dom": "^18.3.0",
144147
"benchmark": "^2.1.4",
145-
"config-housekeeping": "https://github.com/streamich/housekeeping#3532d2abeac159315ddf403d70517859d079c801",
148+
"config-galore": "^1.0.0",
146149
"editing-traces": "https://github.com/streamich/editing-traces#6494020428530a6e382378b98d1d7e31334e2d7b",
147150
"fast-json-patch": "^3.1.1",
148151
"html-webpack-plugin": "^5.6.0",

src/json-crdt-peritext-ui/dom/CursorController.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ export interface CursorControllerOpts {
2727
export class CursorController implements UiLifeCycles, Printable {
2828
public readonly caretId: string;
2929

30+
private readonly _cursor: [fn: PeritextEventTarget['cursor'], stop: () => void];
31+
3032
public constructor(public readonly opts: CursorControllerOpts) {
3133
this.caretId = 'jsonjoy.com-peritext-caret-' + opts.et.id;
34+
this._cursor = throttle(opts.et.cursor.bind(opts.et), 25);
3235
}
3336

3437
/** The position where user started to scrub the text. */
3538
protected selAnchor: number = -1;
3639

37-
private readonly _cursor = throttle(this.opts.et.cursor.bind(this.opts.et), 25);
38-
3940
/**
4041
* String position at coordinate, or -1, if unknown.
4142
*/

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./node_modules/config-housekeeping/tsconfig.json",
2+
"extends": "./node_modules/config-galore/tsconfig.json",
33
"include": ["src"],
44
"exclude": ["node_modules", "lib", "es6", "es2020", "esm", "docs", "README.md"],
55
"typedocOptions": {

yarn.lock

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,9 +1652,13 @@ concat-map@0.0.1:
16521652
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
16531653
integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
16541654

1655+
config-galore@^1.0.0:
1656+
version "1.0.0"
1657+
resolved "https://registry.yarnpkg.com/config-galore/-/config-galore-1.0.0.tgz#641b5919192513021ee7f272ba3ea063b186e046"
1658+
integrity sha512-f6P+7NyL57wz6hxeuvoDC9OpLESqTsYhAw5xqIWhSm7KSH2au+O45q7TelQyOVCP6CG3Oc/qfAnMlApug9GbPw==
1659+
16551660
"config-housekeeping@https://github.com/streamich/housekeeping#3532d2abeac159315ddf403d70517859d079c801":
16561661
version "0.0.0"
1657-
uid "3532d2abeac159315ddf403d70517859d079c801"
16581662
resolved "https://github.com/streamich/housekeeping#3532d2abeac159315ddf403d70517859d079c801"
16591663

16601664
connect-history-api-fallback@^2.0.0:
@@ -1904,7 +1908,6 @@ dot-case@^3.0.4:
19041908

19051909
"editing-traces@https://github.com/streamich/editing-traces#6494020428530a6e382378b98d1d7e31334e2d7b":
19061910
version "0.0.0"
1907-
uid "6494020428530a6e382378b98d1d7e31334e2d7b"
19081911
resolved "https://github.com/streamich/editing-traces#6494020428530a6e382378b98d1d7e31334e2d7b"
19091912

19101913
ee-first@1.1.1:
@@ -3108,7 +3111,6 @@ jsesc@^3.0.2:
31083111

31093112
"json-crdt-traces@https://github.com/streamich/json-crdt-traces#ec825401dc05cbb74b9e0b3c4d6527399f54d54d":
31103113
version "0.0.1"
3111-
uid ec825401dc05cbb74b9e0b3c4d6527399f54d54d
31123114
resolved "https://github.com/streamich/json-crdt-traces#ec825401dc05cbb74b9e0b3c4d6527399f54d54d"
31133115

31143116
json-logic-js@^2.0.2:

0 commit comments

Comments
 (0)