@adecore/editor 0.54.2 → 0.54.3
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/dist/fake.js +1 -1
- package/package.json +3 -3
- package/src/fake.ts +1 -1
- package/src/types.ts +4 -4
package/dist/fake.js
CHANGED
|
@@ -974,7 +974,7 @@ export class FakeEditorEngine {
|
|
|
974
974
|
this.editors.push(editor);
|
|
975
975
|
return editor;
|
|
976
976
|
}
|
|
977
|
-
/* The editor mounted last, which is the one a test of a single
|
|
977
|
+
/* The editor mounted last, which is the one a test of a single editor drives. */
|
|
978
978
|
get last() {
|
|
979
979
|
const editor = this.editors.at(-1);
|
|
980
980
|
if (!editor) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/editor",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"test": "bun test --conditions=source"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@adecore/editor-core": "0.54.
|
|
58
|
-
"@adecore/utils": "0.54.
|
|
57
|
+
"@adecore/editor-core": "0.54.3",
|
|
58
|
+
"@adecore/utils": "0.54.3",
|
|
59
59
|
"linkedom": "^0.18.14",
|
|
60
60
|
"shiki": "^4.5.0"
|
|
61
61
|
},
|
package/src/fake.ts
CHANGED
|
@@ -1343,7 +1343,7 @@ export class FakeEditorEngine implements EditorEngine {
|
|
|
1343
1343
|
return editor;
|
|
1344
1344
|
}
|
|
1345
1345
|
|
|
1346
|
-
/* The editor mounted last, which is the one a test of a single
|
|
1346
|
+
/* The editor mounted last, which is the one a test of a single editor drives. */
|
|
1347
1347
|
get last(): FakeEditor {
|
|
1348
1348
|
const editor = this.editors.at(-1);
|
|
1349
1349
|
|
package/src/types.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface EditorFolds {
|
|
|
66
66
|
export type EditorTheme = string;
|
|
67
67
|
|
|
68
68
|
export interface EditorOptions {
|
|
69
|
-
/*
|
|
69
|
+
/* More host shortcuts for this mount, on top of the engine's handBack chords. */
|
|
70
70
|
readonly handBack?: readonly KeyChord[];
|
|
71
71
|
readonly text: string;
|
|
72
72
|
/* A Shiki language id. Without one, or with one Shiki does not know, it is plain text. */
|
|
@@ -675,9 +675,9 @@ export interface Editor {
|
|
|
675
675
|
findStep(direction: 1 | -1): void;
|
|
676
676
|
/* Replaces the match the find is on, with `$1` and the like expanded for a regular expression, and moves to the next one. Regex returns true when the worker operation starts; false when there is no match or the editor is read only. */
|
|
677
677
|
replace(replacement: string, options?: EditorReplaceOptions): boolean;
|
|
678
|
-
/*
|
|
678
|
+
/* The number replaced when the find already holds every match; otherwise it replaces in the background, returns zero and reports through onFind. */
|
|
679
679
|
replaceAll(replacement: string, options?: EditorReplaceOptions): number;
|
|
680
|
-
/*
|
|
680
|
+
/* All or nothing, as one undo step. Too many matches or too much output fail through onFind. */
|
|
681
681
|
replaceAllAsync(replacement: string, options?: EditorReplaceOptions): Promise<number>;
|
|
682
682
|
/* What a regular expression replacement writes for the match the find is on, drawn under it while the find is open; null takes it away. */
|
|
683
683
|
setReplacePreview(replacement: string | null, options?: EditorReplaceOptions): void;
|
|
@@ -927,7 +927,7 @@ export interface TokenizedLine {
|
|
|
927
927
|
}
|
|
928
928
|
|
|
929
929
|
/*
|
|
930
|
-
*
|
|
930
|
+
* Colors a document line by line. A grammar needs the state the line before it ended in, so an edit recolors from
|
|
931
931
|
* the changed line on, and stops as soon as a line ends in the state it ended in before.
|
|
932
932
|
*/
|
|
933
933
|
export interface LineTokenizer {
|