@adecore/editor-react 0.66.10 → 0.67.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.
- package/dist/SymbolPicker.js +11 -8
- package/dist/call-hierarchy.js +1 -1
- package/dist/code-actions.js +1 -1
- package/dist/navigation.js +1 -1
- package/dist/peek.js +1 -1
- package/dist/rename.js +1 -1
- package/dist/rendered-docs.js +1 -1
- package/package.json +10 -10
- package/src/SymbolPicker.tsx +9 -4
- package/src/call-hierarchy.ts +1 -1
- package/src/code-actions.ts +1 -1
- package/src/navigation.ts +1 -1
- package/src/peek.ts +1 -1
- package/src/rename.ts +1 -1
- package/src/rendered-docs.ts +1 -1
package/dist/SymbolPicker.js
CHANGED
|
@@ -146,7 +146,12 @@ export function SymbolPicker(t0) {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
|
-
|
|
149
|
+
const groupStarts = [];
|
|
150
|
+
let next = 0;
|
|
151
|
+
for (const group_0 of groups) {
|
|
152
|
+
groupStarts.push(next);
|
|
153
|
+
next = next + group_0.entries.length;
|
|
154
|
+
}
|
|
150
155
|
const t4 = mode.mode === "workspace" ? Hash : AtSign;
|
|
151
156
|
let t5;
|
|
152
157
|
if ($[5] !== t4) {
|
|
@@ -243,16 +248,14 @@ export function SymbolPicker(t0) {
|
|
|
243
248
|
})]
|
|
244
249
|
}, place_0.id);
|
|
245
250
|
});
|
|
246
|
-
const t16 = mode.mode === "symbol" && groups.map(
|
|
247
|
-
const start =
|
|
248
|
-
offset = offset + group_0.entries.length;
|
|
249
|
-
offset;
|
|
251
|
+
const t16 = mode.mode === "symbol" && groups.map((group_1, groupIndex) => {
|
|
252
|
+
const start = groupStarts[groupIndex] ?? 0;
|
|
250
253
|
return /*#__PURE__*/_jsxs("div", {
|
|
251
254
|
role: "group",
|
|
252
255
|
children: [/*#__PURE__*/_jsx("div", {
|
|
253
256
|
className: "px-2 pt-1.5 pb-0.5 text-xs font-medium text-text-faint",
|
|
254
|
-
children: t(`language.symbols.groups.${
|
|
255
|
-
}),
|
|
257
|
+
children: t(`language.symbols.groups.${group_1.group}`)
|
|
258
|
+
}), group_1.entries.map((entry, index_1) => {
|
|
256
259
|
const position = start + index_1;
|
|
257
260
|
return /*#__PURE__*/_jsxs("button", {
|
|
258
261
|
ref: position === active ? activeRow : undefined,
|
|
@@ -279,7 +282,7 @@ export function SymbolPicker(t0) {
|
|
|
279
282
|
})]
|
|
280
283
|
}, entry.id);
|
|
281
284
|
})]
|
|
282
|
-
},
|
|
285
|
+
}, group_1.group);
|
|
283
286
|
});
|
|
284
287
|
let t17;
|
|
285
288
|
if ($[18] !== flat || $[19] !== mode.mode || $[20] !== t) {
|
package/dist/call-hierarchy.js
CHANGED
|
@@ -509,6 +509,6 @@ export class CallHierarchyFeature {
|
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
511
|
say(key, options) {
|
|
512
|
-
return this.language.project.i18n.t(`editor:language.callHierarchy.${key}`, options);
|
|
512
|
+
return this.language.project.i18n.t(`editor:language.callHierarchy.${key}`, options ?? {});
|
|
513
513
|
}
|
|
514
514
|
}
|
package/dist/code-actions.js
CHANGED
package/dist/navigation.js
CHANGED
|
@@ -146,6 +146,6 @@ export class NavigationFeature {
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
say(key, options) {
|
|
149
|
-
return this.language.project.i18n.t(`editor:language.navigation.${key}`, options);
|
|
149
|
+
return this.language.project.i18n.t(`editor:language.navigation.${key}`, options ?? {});
|
|
150
150
|
}
|
|
151
151
|
}
|
package/dist/peek.js
CHANGED
package/dist/rename.js
CHANGED
package/dist/rendered-docs.js
CHANGED
|
@@ -352,7 +352,7 @@ export class RenderedDocsFeature {
|
|
|
352
352
|
const {
|
|
353
353
|
editor
|
|
354
354
|
} = this.language;
|
|
355
|
-
const t = (key, options) => this.language.project.i18n.t(`editor:language.docs.${key}`, options);
|
|
355
|
+
const t = (key, options) => this.language.project.i18n.t(`editor:language.docs.${key}`, options ?? {});
|
|
356
356
|
const rendered = this.comments.filter(comment => this.isRendered(comment));
|
|
357
357
|
const signature = rendered.map(comment => `${this.idOf(comment)}@${comment.startLine}-${comment.endLine}`).join('|');
|
|
358
358
|
if (force || signature !== this.drawn) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/editor-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.67.0",
|
|
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",
|
|
@@ -64,25 +64,25 @@
|
|
|
64
64
|
"test": "bun test --conditions=source"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@adecore/editor": "0.
|
|
68
|
-
"@adecore/lsp": "0.
|
|
69
|
-
"@adecore/merge": "0.
|
|
67
|
+
"@adecore/editor": "0.67.0",
|
|
68
|
+
"@adecore/lsp": "0.67.0",
|
|
69
|
+
"@adecore/merge": "0.67.0",
|
|
70
70
|
"emmet": "^2.4.11",
|
|
71
|
-
"lucide-react": "^1.
|
|
71
|
+
"lucide-react": "^1.73.0",
|
|
72
72
|
"react-markdown": "^10.1.0",
|
|
73
73
|
"remark-breaks": "^4.0.0",
|
|
74
74
|
"remark-gfm": "^4.0.1",
|
|
75
|
-
"zustand": "^5.0
|
|
75
|
+
"zustand": "^5.1.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@adecore/ui": "^0.
|
|
79
|
-
"i18next": "^26.5.12",
|
|
78
|
+
"@adecore/ui": "^0.67.0",
|
|
79
|
+
"i18next": "^26.5.12 || ^27.0.0",
|
|
80
80
|
"react": "^19.3.1",
|
|
81
81
|
"react-dom": "^19.3.1",
|
|
82
|
-
"react-i18next": "^17.1.9"
|
|
82
|
+
"react-i18next": "^17.1.9 || ^18.0.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@adecore/ui": "0.
|
|
85
|
+
"@adecore/ui": "0.67.0",
|
|
86
86
|
"@types/bun": "^1.4.4",
|
|
87
87
|
"@types/react": "^19.3.0",
|
|
88
88
|
"@types/react-dom": "^19.3.0",
|
package/src/SymbolPicker.tsx
CHANGED
|
@@ -95,7 +95,13 @@ export function SymbolPicker({ language, view }: { language: EditorLanguage; vie
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
const groupStarts: number[] = [];
|
|
99
|
+
let next = 0;
|
|
100
|
+
|
|
101
|
+
for (const group of groups) {
|
|
102
|
+
groupStarts.push(next);
|
|
103
|
+
next += group.entries.length;
|
|
104
|
+
}
|
|
99
105
|
|
|
100
106
|
return createPortal(
|
|
101
107
|
<div
|
|
@@ -153,9 +159,8 @@ export function SymbolPicker({ language, view }: { language: EditorLanguage; vie
|
|
|
153
159
|
);
|
|
154
160
|
})}
|
|
155
161
|
{mode.mode === 'symbol' &&
|
|
156
|
-
groups.map((group) => {
|
|
157
|
-
const start =
|
|
158
|
-
offset += group.entries.length;
|
|
162
|
+
groups.map((group, groupIndex) => {
|
|
163
|
+
const start = groupStarts[groupIndex] ?? 0;
|
|
159
164
|
|
|
160
165
|
return (
|
|
161
166
|
<div key={group.group} role="group">
|
package/src/call-hierarchy.ts
CHANGED
|
@@ -561,6 +561,6 @@ export class CallHierarchyFeature {
|
|
|
561
561
|
}
|
|
562
562
|
|
|
563
563
|
private say(key: string, options?: Record<string, unknown>): string {
|
|
564
|
-
return this.language.project.i18n.t(`editor:language.callHierarchy.${key}`, options);
|
|
564
|
+
return this.language.project.i18n.t(`editor:language.callHierarchy.${key}`, options ?? {});
|
|
565
565
|
}
|
|
566
566
|
}
|
package/src/code-actions.ts
CHANGED
|
@@ -511,6 +511,6 @@ export class CodeActionsFeature {
|
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
private say(key: string, options?: Record<string, unknown>): string {
|
|
514
|
-
return this.language.project.i18n.t(`editor:language.actions.${key}`, options);
|
|
514
|
+
return this.language.project.i18n.t(`editor:language.actions.${key}`, options ?? {});
|
|
515
515
|
}
|
|
516
516
|
}
|
package/src/navigation.ts
CHANGED
|
@@ -178,6 +178,6 @@ export class NavigationFeature {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
private say(key: string, options?: Record<string, unknown>): string {
|
|
181
|
-
return this.language.project.i18n.t(`editor:language.navigation.${key}`, options);
|
|
181
|
+
return this.language.project.i18n.t(`editor:language.navigation.${key}`, options ?? {});
|
|
182
182
|
}
|
|
183
183
|
}
|
package/src/peek.ts
CHANGED
|
@@ -289,6 +289,6 @@ export class PeekFeature {
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
private say(key: string, options?: Record<string, unknown>): string {
|
|
292
|
-
return this.language.project.i18n.t(`editor:language.peek.${key}`, options);
|
|
292
|
+
return this.language.project.i18n.t(`editor:language.peek.${key}`, options ?? {});
|
|
293
293
|
}
|
|
294
294
|
}
|
package/src/rename.ts
CHANGED
|
@@ -349,6 +349,6 @@ export class RenameFeature {
|
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
private say(key: string, options?: Record<string, unknown>): string {
|
|
352
|
-
return this.language.project.i18n.t(`editor:language.rename.${key}`, options);
|
|
352
|
+
return this.language.project.i18n.t(`editor:language.rename.${key}`, options ?? {});
|
|
353
353
|
}
|
|
354
354
|
}
|
package/src/rendered-docs.ts
CHANGED
|
@@ -432,7 +432,7 @@ export class RenderedDocsFeature {
|
|
|
432
432
|
|
|
433
433
|
const { editor } = this.language;
|
|
434
434
|
|
|
435
|
-
const t = (key: string, options?: Record<string, string>): string => this.language.project.i18n.t(`editor:language.docs.${key}`, options);
|
|
435
|
+
const t = (key: string, options?: Record<string, string>): string => this.language.project.i18n.t(`editor:language.docs.${key}`, options ?? {});
|
|
436
436
|
|
|
437
437
|
const rendered = this.comments.filter((comment) => this.isRendered(comment));
|
|
438
438
|
const signature = rendered.map((comment) => `${this.idOf(comment)}@${comment.startLine}-${comment.endLine}`).join('|');
|