@adecore/editor-react 0.33.3 → 0.34.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.
- package/dist/folding.d.ts +2 -3
- package/dist/folding.js +1 -1
- package/dist/signature-model.d.ts +1 -5
- package/dist/signature-model.js +1 -1
- package/package.json +6 -6
- package/src/folding.ts +1 -1
- package/src/signature-model.ts +1 -1
package/dist/folding.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { DocumentSymbolResult
|
|
1
|
+
import type { EditorFoldSymbol } from '@adecore/editor';
|
|
2
|
+
import type { DocumentSymbolResult } from '@adecore/lsp';
|
|
3
3
|
import type { EditorLanguage } from './editor-language.ts';
|
|
4
4
|
import { type Timers } from './timers.ts';
|
|
5
5
|
export declare function foldSymbolsOf(result: DocumentSymbolResult): EditorFoldSymbol[];
|
|
6
|
-
export declare function foldRangesOf(ranges: readonly FoldingRange[] | null): EditorFoldRangeHint[];
|
|
7
6
|
export declare class FoldingFeature {
|
|
8
7
|
private symbols;
|
|
9
8
|
private ranges;
|
package/dist/folding.js
CHANGED
|
@@ -31,7 +31,7 @@ export function foldSymbolsOf(result) {
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
/* The ranges a server folds that span more than one line, with where a range starts and ends within its lines when it says. */
|
|
34
|
-
|
|
34
|
+
function foldRangesOf(ranges) {
|
|
35
35
|
return (ranges ?? []).filter(range => range.endLine > range.startLine).map(range => ({
|
|
36
36
|
startLine: range.startLine,
|
|
37
37
|
endLine: range.endLine,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SignatureHelp
|
|
1
|
+
import type { SignatureHelp } from '@adecore/lsp';
|
|
2
2
|
export interface SignatureViewModel {
|
|
3
3
|
readonly label: string;
|
|
4
4
|
readonly active: {
|
|
@@ -11,8 +11,4 @@ export interface SignatureViewModel {
|
|
|
11
11
|
readonly index: number;
|
|
12
12
|
readonly count: number;
|
|
13
13
|
}
|
|
14
|
-
export declare function parameterSpan(signature: SignatureInformation, index: number): {
|
|
15
|
-
start: number;
|
|
16
|
-
end: number;
|
|
17
|
-
} | null;
|
|
18
14
|
export declare function signatureViewOf(help: SignatureHelp | null): SignatureViewModel | null;
|
package/dist/signature-model.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { documentationText } from './completion-model.js';
|
|
2
2
|
/* Where a parameter's label stands in the signature's: given as a pair of offsets, or as the text to find in it. */
|
|
3
|
-
|
|
3
|
+
function parameterSpan(signature, index) {
|
|
4
4
|
const parameter = signature.parameters?.[index];
|
|
5
5
|
if (parameter === undefined) {
|
|
6
6
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/editor-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Language-enabled editors, feature coordination and React popups over injected language services.",
|
|
6
6
|
"license": "FSL-1.1-MIT",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"test": "bun test --conditions=source"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@adecore/editor": "0.
|
|
66
|
-
"@adecore/lsp": "0.
|
|
67
|
-
"@adecore/merge": "0.
|
|
65
|
+
"@adecore/editor": "0.34.1",
|
|
66
|
+
"@adecore/lsp": "0.34.1",
|
|
67
|
+
"@adecore/merge": "0.34.1",
|
|
68
68
|
"lucide-react": "^1.47.0",
|
|
69
69
|
"react-markdown": "^10.1.0",
|
|
70
70
|
"remark-breaks": "^4.0.0",
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
"zustand": "^5.0.15"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@adecore/ui": "^0.
|
|
75
|
+
"@adecore/ui": "^0.34.1",
|
|
76
76
|
"i18next": "^26.4.2",
|
|
77
77
|
"react": "^19.3.0",
|
|
78
78
|
"react-dom": "^19.3.0",
|
|
79
79
|
"react-i18next": "^17.0.15"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@adecore/ui": "0.
|
|
82
|
+
"@adecore/ui": "0.34.1",
|
|
83
83
|
"@types/bun": "^1.4.2",
|
|
84
84
|
"@types/react": "^19.3.0",
|
|
85
85
|
"@types/react-dom": "^19.3.0",
|
package/src/folding.ts
CHANGED
|
@@ -32,7 +32,7 @@ export function foldSymbolsOf(result: DocumentSymbolResult): EditorFoldSymbol[]
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/* The ranges a server folds that span more than one line, with where a range starts and ends within its lines when it says. */
|
|
35
|
-
|
|
35
|
+
function foldRangesOf(ranges: readonly FoldingRange[] | null): EditorFoldRangeHint[] {
|
|
36
36
|
return (ranges ?? [])
|
|
37
37
|
.filter((range) => range.endLine > range.startLine)
|
|
38
38
|
.map((range) => ({
|
package/src/signature-model.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface SignatureViewModel {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/* Where a parameter's label stands in the signature's: given as a pair of offsets, or as the text to find in it. */
|
|
18
|
-
|
|
18
|
+
function parameterSpan(signature: SignatureInformation, index: number): { start: number; end: number } | null {
|
|
19
19
|
const parameter = signature.parameters?.[index];
|
|
20
20
|
if (parameter === undefined) {
|
|
21
21
|
return null;
|