@adecore/editor-react 0.53.2 → 0.54.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.
Files changed (131) hide show
  1. package/dist/AnchoredPopup.d.ts +1 -1
  2. package/dist/AnchoredPopup.js +27 -12
  3. package/dist/AttributionCard.d.ts +1 -1
  4. package/dist/BaselineStatus.js +1 -1
  5. package/dist/CallHierarchyPanel.js +11 -10
  6. package/dist/ChangeReview.d.ts +1 -1
  7. package/dist/CodeAuthorsCard.js +2 -2
  8. package/dist/CompletionPopup.js +18 -14
  9. package/dist/DiffView.d.ts +2 -2
  10. package/dist/DiffView.js +159 -143
  11. package/dist/EditorContextMenu.js +1 -1
  12. package/dist/EditorView.d.ts +2 -2
  13. package/dist/EditorView.js +97 -81
  14. package/dist/FindReplace.js +3 -3
  15. package/dist/HoverCard.d.ts +3 -3
  16. package/dist/HoverCard.js +3 -3
  17. package/dist/HoverSections.js +1 -1
  18. package/dist/LanguagePopups.js +1 -1
  19. package/dist/Markdown.js +15 -3
  20. package/dist/PeekPanel.js +124 -103
  21. package/dist/PickPopup.js +8 -4
  22. package/dist/RenameCard.js +7 -7
  23. package/dist/RenderedDocs.d.ts +1 -1
  24. package/dist/RenderedDocs.js +1 -1
  25. package/dist/SplitDiffView.js +21 -4
  26. package/dist/SymbolPicker.js +93 -89
  27. package/dist/WrapCard.js +1 -1
  28. package/dist/call-hierarchy.d.ts +1 -1
  29. package/dist/call-hierarchy.js +3 -3
  30. package/dist/code-actions.js +2 -2
  31. package/dist/code-vision.d.ts +1 -1
  32. package/dist/completion-model.d.ts +1 -1
  33. package/dist/completion-model.js +2 -2
  34. package/dist/completion.d.ts +1 -1
  35. package/dist/completion.js +12 -12
  36. package/dist/diagnostics.d.ts +1 -1
  37. package/dist/diagnostics.js +1 -1
  38. package/dist/diff-overlays.js +2 -2
  39. package/dist/editor-language.d.ts +12 -12
  40. package/dist/editor-language.js +10 -10
  41. package/dist/editor-react.css +4 -4
  42. package/dist/highlights.d.ts +1 -1
  43. package/dist/highlights.js +2 -2
  44. package/dist/host-types.d.ts +4 -4
  45. package/dist/hover.js +1 -1
  46. package/dist/inlay-hints.js +1 -1
  47. package/dist/live-templates.js +1 -1
  48. package/dist/markup.js +1 -1
  49. package/dist/navigation.d.ts +1 -1
  50. package/dist/navigation.js +3 -3
  51. package/dist/peek.js +1 -1
  52. package/dist/popups.d.ts +5 -5
  53. package/dist/project-language.d.ts +4 -4
  54. package/dist/project-language.js +5 -5
  55. package/dist/rename.js +1 -1
  56. package/dist/rendered-docs.d.ts +1 -1
  57. package/dist/rendered-docs.js +1 -1
  58. package/dist/shortcut-keys.d.ts +1 -1
  59. package/dist/signature.js +1 -1
  60. package/dist/snippet-field-transforms.d.ts +2 -2
  61. package/dist/snippet-insert.js +3 -3
  62. package/dist/snippet-session.d.ts +2 -2
  63. package/dist/snippet-session.js +5 -5
  64. package/dist/snippet-transform-queue.d.ts +1 -1
  65. package/dist/surround.js +1 -1
  66. package/dist/symbol-picker.js +2 -2
  67. package/dist/templates.js +1 -1
  68. package/dist/use-problem-counts.d.ts +1 -1
  69. package/package.json +6 -6
  70. package/src/AnchoredPopup.tsx +7 -3
  71. package/src/AttributionCard.tsx +1 -1
  72. package/src/BaselineStatus.tsx +1 -1
  73. package/src/CallHierarchyPanel.tsx +13 -12
  74. package/src/ChangeReview.tsx +1 -1
  75. package/src/CodeAuthorsCard.tsx +2 -2
  76. package/src/CompletionPopup.tsx +16 -13
  77. package/src/DiffView.tsx +12 -6
  78. package/src/EditorContextMenu.tsx +2 -2
  79. package/src/EditorView.tsx +14 -6
  80. package/src/FindReplace.tsx +3 -3
  81. package/src/HoverCard.tsx +7 -7
  82. package/src/HoverSections.tsx +1 -1
  83. package/src/LanguagePopups.tsx +3 -3
  84. package/src/Markdown.tsx +13 -2
  85. package/src/PeekPanel.tsx +13 -13
  86. package/src/PickPopup.tsx +6 -5
  87. package/src/RenameCard.tsx +8 -8
  88. package/src/RenderedDocs.tsx +3 -3
  89. package/src/SplitDiffView.tsx +14 -5
  90. package/src/SymbolPicker.tsx +6 -6
  91. package/src/WrapCard.tsx +2 -2
  92. package/src/call-hierarchy.ts +5 -5
  93. package/src/code-actions.ts +3 -3
  94. package/src/code-authors.ts +1 -1
  95. package/src/code-vision.ts +3 -3
  96. package/src/completion-model.ts +3 -3
  97. package/src/completion.ts +15 -15
  98. package/src/diagnostics.ts +4 -4
  99. package/src/diff-overlays.tsx +4 -4
  100. package/src/editor-language.ts +13 -13
  101. package/src/editor-react.css +4 -4
  102. package/src/format-on-type.ts +1 -1
  103. package/src/highlights.ts +3 -3
  104. package/src/host-types.ts +4 -4
  105. package/src/hover.ts +3 -3
  106. package/src/inlay-hints.ts +1 -1
  107. package/src/line-edits.ts +1 -1
  108. package/src/live-templates.ts +2 -2
  109. package/src/markup.ts +2 -2
  110. package/src/navigation.ts +5 -5
  111. package/src/patch-decorations.ts +1 -1
  112. package/src/peek.ts +3 -3
  113. package/src/pick.ts +1 -1
  114. package/src/popups.ts +5 -5
  115. package/src/postfix.ts +1 -1
  116. package/src/project-language.ts +7 -7
  117. package/src/proposal-model.ts +1 -1
  118. package/src/rename.ts +3 -3
  119. package/src/rendered-docs.ts +2 -2
  120. package/src/shortcut-keys.ts +1 -1
  121. package/src/signature.ts +3 -3
  122. package/src/snippet-field-transforms.ts +2 -2
  123. package/src/snippet-insert.ts +3 -3
  124. package/src/snippet-session.ts +7 -7
  125. package/src/snippet-transform-queue.ts +1 -1
  126. package/src/surround.ts +1 -1
  127. package/src/symbol-picker-model.ts +1 -1
  128. package/src/symbol-picker.ts +3 -3
  129. package/src/templates.ts +1 -1
  130. package/src/use-problem-counts.ts +1 -1
  131. package/src/workspace-edit.ts +1 -1
package/dist/DiffView.js CHANGED
@@ -1,17 +1,18 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { useLayoutEffect, useRef, useState } from 'react';
3
- import { useTranslation } from 'react-i18next';
4
2
  import { parseChord } from '@adecore/editor/keymap';
5
3
  import { diffDisplay, diffSplit, sourceLineOf } from '@adecore/merge';
6
- import { wordMarks } from './diff-wordmarks.js';
4
+ import { useOverlayScrollbars } from '@adecore/ui';
5
+ import { useLayoutEffect, useRef, useState } from 'react';
6
+ import { useTranslation } from 'react-i18next';
7
+ import { DEFAULT_UNFOLD_LIMITS, expandDiff } from './diff-expansion.js';
7
8
  import { DiffOverlays } from "./diff-overlays.js";
8
- import { SplitDiffView } from "./SplitDiffView.js";
9
9
  import { repaintOnTokens } from './diff-syntax.js';
10
+ import { wordMarks } from './diff-wordmarks.js';
10
11
  import { LineActionHost, RowHost } from './row-host.js';
11
- import { DEFAULT_UNFOLD_LIMITS, expandDiff } from './diff-expansion.js';
12
+ import { SplitDiffView } from "./SplitDiffView.js";
12
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
14
  function UnifiedDiffView(t0) {
14
- const $ = _c(78);
15
+ const $ = _c(80);
15
16
  const {
16
17
  engine,
17
18
  document,
@@ -84,9 +85,20 @@ function UnifiedDiffView(t0) {
84
85
  const applied = useRef(t6);
85
86
  const [mounted, setMounted] = useState(null);
86
87
  const [height, setHeight] = useState(0);
88
+ const [scroller, setScroller] = useState(null);
87
89
  let t7;
88
- if ($[13] !== display || $[14] !== document || $[15] !== label || $[16] !== theme || $[17] !== tokens || $[18] !== wrap) {
89
- t7 = () => {
90
+ if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
91
+ t7 = {
92
+ axis: "both"
93
+ };
94
+ $[13] = t7;
95
+ } else {
96
+ t7 = $[13];
97
+ }
98
+ const scrollbars = useOverlayScrollbars(scroller, t7);
99
+ let t8;
100
+ if ($[14] !== display || $[15] !== document || $[16] !== label || $[17] !== theme || $[18] !== tokens || $[19] !== wrap) {
101
+ t8 = () => {
90
102
  current.current = {
91
103
  document,
92
104
  display,
@@ -96,21 +108,21 @@ function UnifiedDiffView(t0) {
96
108
  label
97
109
  };
98
110
  };
99
- $[13] = display;
100
- $[14] = document;
101
- $[15] = label;
102
- $[16] = theme;
103
- $[17] = tokens;
104
- $[18] = wrap;
105
- $[19] = t7;
111
+ $[14] = display;
112
+ $[15] = document;
113
+ $[16] = label;
114
+ $[17] = theme;
115
+ $[18] = tokens;
116
+ $[19] = wrap;
117
+ $[20] = t8;
106
118
  } else {
107
- t7 = $[19];
119
+ t8 = $[20];
108
120
  }
109
- useLayoutEffect(t7);
110
- let t8;
121
+ useLayoutEffect(t8);
122
+ let t10;
111
123
  let t9;
112
- if ($[20] !== engine) {
113
- t8 = () => {
124
+ if ($[21] !== engine) {
125
+ t9 = () => {
114
126
  const host = element.current;
115
127
  if (host === null) {
116
128
  return;
@@ -147,27 +159,29 @@ function UnifiedDiffView(t0) {
147
159
  rows: new RowHost(editor, "diff-gaps"),
148
160
  actions: new LineActionHost(editor, "diff-status")
149
161
  });
162
+ setScroller(host.querySelector(".se-viewport"));
150
163
  const measure = () => setHeight(editor.getContentHeight());
151
164
  const stop = editor.onViewChange(measure);
152
165
  measure();
153
166
  return () => {
154
167
  stop();
168
+ setScroller(null);
155
169
  editor.dispose();
156
170
  };
157
171
  };
158
- t9 = [engine];
159
- $[20] = engine;
160
- $[21] = t8;
161
- $[22] = t9;
172
+ t10 = [engine];
173
+ $[21] = engine;
174
+ $[22] = t10;
175
+ $[23] = t9;
162
176
  } else {
163
- t8 = $[21];
164
- t9 = $[22];
177
+ t10 = $[22];
178
+ t9 = $[23];
165
179
  }
166
- useLayoutEffect(t8, t9);
167
- let t10;
180
+ useLayoutEffect(t9, t10);
168
181
  let t11;
169
- if ($[23] !== display || $[24] !== emphasis || $[25] !== engine || $[26] !== mounted || $[27] !== numbered) {
170
- t10 = () => {
182
+ let t12;
183
+ if ($[24] !== display || $[25] !== emphasis || $[26] !== engine || $[27] !== mounted || $[28] !== numbered) {
184
+ t11 = () => {
171
185
  if (mounted === null || mounted.engine !== engine) {
172
186
  return;
173
187
  }
@@ -197,11 +211,11 @@ function UnifiedDiffView(t0) {
197
211
  }
198
212
  editor_0.setLineHighlights(highlights);
199
213
  editor_0.setChangeMarks(highlights.map(_temp));
200
- rows.set(display.gaps.map(t12 => {
214
+ rows.set(display.gaps.map(t13 => {
201
215
  const {
202
216
  before,
203
217
  row: row_2
204
- } = t12;
218
+ } = t13;
205
219
  return {
206
220
  id: `gap-${row_2.id}`,
207
221
  line: Math.min(before, Math.max(0, display.rows.length - 1)),
@@ -211,23 +225,23 @@ function UnifiedDiffView(t0) {
211
225
  }));
212
226
  actions.set(display.rows.flatMap(_temp2));
213
227
  };
214
- t11 = [mounted, engine, display, emphasis, numbered];
215
- $[23] = display;
216
- $[24] = emphasis;
217
- $[25] = engine;
218
- $[26] = mounted;
219
- $[27] = numbered;
220
- $[28] = t10;
228
+ t12 = [mounted, engine, display, emphasis, numbered];
229
+ $[24] = display;
230
+ $[25] = emphasis;
231
+ $[26] = engine;
232
+ $[27] = mounted;
233
+ $[28] = numbered;
221
234
  $[29] = t11;
235
+ $[30] = t12;
222
236
  } else {
223
- t10 = $[28];
224
237
  t11 = $[29];
238
+ t12 = $[30];
225
239
  }
226
- useLayoutEffect(t10, t11);
227
- let t12;
240
+ useLayoutEffect(t11, t12);
228
241
  let t13;
229
- if ($[30] !== display || $[31] !== engine || $[32] !== mounted || $[33] !== numbered || $[34] !== t) {
230
- t12 = () => {
242
+ let t14;
243
+ if ($[31] !== display || $[32] !== engine || $[33] !== mounted || $[34] !== numbered || $[35] !== t) {
244
+ t13 = () => {
231
245
  if (mounted === null || mounted.engine !== engine) {
232
246
  return;
233
247
  }
@@ -249,23 +263,23 @@ function UnifiedDiffView(t0) {
249
263
  }) : null;
250
264
  });
251
265
  };
252
- t13 = [mounted, engine, display, t, numbered];
253
- $[30] = display;
254
- $[31] = engine;
255
- $[32] = mounted;
256
- $[33] = numbered;
257
- $[34] = t;
258
- $[35] = t12;
266
+ t14 = [mounted, engine, display, t, numbered];
267
+ $[31] = display;
268
+ $[32] = engine;
269
+ $[33] = mounted;
270
+ $[34] = numbered;
271
+ $[35] = t;
259
272
  $[36] = t13;
273
+ $[37] = t14;
260
274
  } else {
261
- t12 = $[35];
262
275
  t13 = $[36];
276
+ t14 = $[37];
263
277
  }
264
- useLayoutEffect(t12, t13);
265
- let t14;
278
+ useLayoutEffect(t13, t14);
266
279
  let t15;
267
- if ($[37] !== engine || $[38] !== label || $[39] !== mounted || $[40] !== theme || $[41] !== wrap) {
268
- t14 = () => {
280
+ let t16;
281
+ if ($[38] !== engine || $[39] !== label || $[40] !== mounted || $[41] !== theme || $[42] !== wrap) {
282
+ t15 = () => {
269
283
  if (mounted === null || mounted.engine !== engine) {
270
284
  return;
271
285
  }
@@ -285,22 +299,22 @@ function UnifiedDiffView(t0) {
285
299
  label
286
300
  };
287
301
  };
288
- t15 = [mounted, engine, theme, wrap, label];
289
- $[37] = engine;
290
- $[38] = label;
291
- $[39] = mounted;
292
- $[40] = theme;
293
- $[41] = wrap;
294
- $[42] = t14;
302
+ t16 = [mounted, engine, theme, wrap, label];
303
+ $[38] = engine;
304
+ $[39] = label;
305
+ $[40] = mounted;
306
+ $[41] = theme;
307
+ $[42] = wrap;
295
308
  $[43] = t15;
309
+ $[44] = t16;
296
310
  } else {
297
- t14 = $[42];
298
311
  t15 = $[43];
312
+ t16 = $[44];
299
313
  }
300
- useLayoutEffect(t14, t15);
301
- let t16;
302
- if ($[44] !== engine || $[45] !== mounted || $[46] !== tokens) {
303
- t16 = () => {
314
+ useLayoutEffect(t15, t16);
315
+ let t17;
316
+ if ($[45] !== engine || $[46] !== mounted || $[47] !== tokens) {
317
+ t17 = () => {
304
318
  if (mounted === null || mounted.engine !== engine) {
305
319
  return;
306
320
  }
@@ -313,48 +327,48 @@ function UnifiedDiffView(t0) {
313
327
  refresh();
314
328
  return repaintOnTokens(element.current?.ownerDocument.defaultView, tokens, refresh);
315
329
  };
316
- $[44] = engine;
317
- $[45] = mounted;
318
- $[46] = tokens;
319
- $[47] = t16;
330
+ $[45] = engine;
331
+ $[46] = mounted;
332
+ $[47] = tokens;
333
+ $[48] = t17;
320
334
  } else {
321
- t16 = $[47];
335
+ t17 = $[48];
322
336
  }
323
- let t17;
324
- if ($[48] !== display || $[49] !== engine || $[50] !== mounted || $[51] !== tokens) {
325
- t17 = [mounted, engine, tokens, display];
326
- $[48] = display;
327
- $[49] = engine;
328
- $[50] = mounted;
329
- $[51] = tokens;
330
- $[52] = t17;
337
+ let t18;
338
+ if ($[49] !== display || $[50] !== engine || $[51] !== mounted || $[52] !== tokens) {
339
+ t18 = [mounted, engine, tokens, display];
340
+ $[49] = display;
341
+ $[50] = engine;
342
+ $[51] = mounted;
343
+ $[52] = tokens;
344
+ $[53] = t18;
331
345
  } else {
332
- t17 = $[52];
346
+ t18 = $[53];
333
347
  }
334
- useLayoutEffect(t16, t17);
335
- let t18;
348
+ useLayoutEffect(t17, t18);
336
349
  let t19;
337
- if ($[53] !== engine || $[54] !== mounted || $[55] !== onMount) {
338
- t18 = () => {
350
+ let t20;
351
+ if ($[54] !== engine || $[55] !== mounted || $[56] !== onMount) {
352
+ t19 = () => {
339
353
  if (mounted !== null && mounted.engine === engine) {
340
354
  return onMount?.(mounted.editor);
341
355
  }
342
356
  };
343
- t19 = [mounted, engine, onMount];
344
- $[53] = engine;
345
- $[54] = mounted;
346
- $[55] = onMount;
347
- $[56] = t18;
357
+ t20 = [mounted, engine, onMount];
358
+ $[54] = engine;
359
+ $[55] = mounted;
360
+ $[56] = onMount;
348
361
  $[57] = t19;
362
+ $[58] = t20;
349
363
  } else {
350
- t18 = $[56];
351
364
  t19 = $[57];
365
+ t20 = $[58];
352
366
  }
353
- useLayoutEffect(t18, t19);
354
- let t20;
367
+ useLayoutEffect(t19, t20);
355
368
  let t21;
356
- if ($[58] !== engine || $[59] !== mounted || $[60] !== onSource) {
357
- t20 = () => {
369
+ let t22;
370
+ if ($[59] !== engine || $[60] !== mounted || $[61] !== onSource) {
371
+ t21 = () => {
358
372
  if (mounted === null || mounted.engine !== engine || onSource === undefined) {
359
373
  return;
360
374
  }
@@ -369,82 +383,84 @@ function UnifiedDiffView(t0) {
369
383
  }
370
384
  });
371
385
  };
372
- t21 = [mounted, engine, onSource];
373
- $[58] = engine;
374
- $[59] = mounted;
375
- $[60] = onSource;
376
- $[61] = t20;
386
+ t22 = [mounted, engine, onSource];
387
+ $[59] = engine;
388
+ $[60] = mounted;
389
+ $[61] = onSource;
377
390
  $[62] = t21;
391
+ $[63] = t22;
378
392
  } else {
379
- t20 = $[61];
380
393
  t21 = $[62];
394
+ t22 = $[63];
381
395
  }
382
- useLayoutEffect(t20, t21);
396
+ useLayoutEffect(t21, t22);
383
397
  const limit = maxHeight !== undefined && Number.isFinite(maxHeight) && maxHeight > 0 ? maxHeight : Infinity;
384
- const t22 = `adecore-editor-diff ${className ?? ""}`;
385
- const t23 = fill || height > limit;
386
- const t24 = fill ? "100%" : Math.min(height, limit);
387
- let t25;
388
- if ($[63] !== t24) {
389
- t25 = {
398
+ const t23 = `adecore-editor-diff ${className ?? ""}`;
399
+ const t24 = fill || height > limit;
400
+ const t25 = fill ? "100%" : Math.min(height, limit);
401
+ let t26;
402
+ if ($[64] !== t25) {
403
+ t26 = {
390
404
  position: "relative",
391
405
  minHeight: 0,
392
- height: t24
406
+ height: t25
393
407
  };
394
- $[63] = t24;
395
408
  $[64] = t25;
409
+ $[65] = t26;
396
410
  } else {
397
- t25 = $[64];
411
+ t26 = $[65];
398
412
  }
399
- let t26;
400
- if ($[65] === Symbol.for("react.memo_cache_sentinel")) {
401
- t26 = /*#__PURE__*/_jsx("div", {
413
+ let t27;
414
+ if ($[66] === Symbol.for("react.memo_cache_sentinel")) {
415
+ t27 = /*#__PURE__*/_jsx("div", {
402
416
  ref: element,
403
417
  style: {
404
418
  position: "absolute",
405
- inset: 0
419
+ inset: 0,
420
+ isolation: "isolate"
406
421
  }
407
422
  });
408
- $[65] = t26;
423
+ $[66] = t27;
409
424
  } else {
410
- t26 = $[65];
425
+ t27 = $[66];
411
426
  }
412
- let t27;
413
- if ($[66] !== blocked || $[67] !== display || $[68] !== engine || $[69] !== mounted || $[70] !== unfold) {
414
- t27 = mounted !== null && mounted.engine === engine && /*#__PURE__*/_jsx(DiffOverlays, {
427
+ let t28;
428
+ if ($[67] !== blocked || $[68] !== display || $[69] !== engine || $[70] !== mounted || $[71] !== unfold) {
429
+ t28 = mounted !== null && mounted.engine === engine && /*#__PURE__*/_jsx(DiffOverlays, {
415
430
  mounted: mounted,
416
431
  display: display,
417
432
  unfold: unfold,
418
433
  blocked: blocked
419
434
  });
420
- $[66] = blocked;
421
- $[67] = display;
422
- $[68] = engine;
423
- $[69] = mounted;
424
- $[70] = unfold;
425
- $[71] = t27;
435
+ $[67] = blocked;
436
+ $[68] = display;
437
+ $[69] = engine;
438
+ $[70] = mounted;
439
+ $[71] = unfold;
440
+ $[72] = t28;
426
441
  } else {
427
- t27 = $[71];
442
+ t28 = $[72];
428
443
  }
429
- let t28;
430
- if ($[72] !== ref || $[73] !== t22 || $[74] !== t23 || $[75] !== t25 || $[76] !== t27) {
431
- t28 = /*#__PURE__*/_jsxs("div", {
432
- className: t22,
444
+ let t29;
445
+ if ($[73] !== ref || $[74] !== scrollbars || $[75] !== t23 || $[76] !== t24 || $[77] !== t26 || $[78] !== t28) {
446
+ t29 = /*#__PURE__*/_jsxs("div", {
447
+ className: t23,
433
448
  ref: ref,
434
- "data-scroll": t23,
435
- style: t25,
436
- children: [t26, t27]
449
+ "data-scroll": t24,
450
+ style: t26,
451
+ children: [t27, t28, scrollbars]
437
452
  });
438
- $[72] = ref;
439
- $[73] = t22;
440
- $[74] = t23;
441
- $[75] = t25;
442
- $[76] = t27;
443
- $[77] = t28;
453
+ $[73] = ref;
454
+ $[74] = scrollbars;
455
+ $[75] = t23;
456
+ $[76] = t24;
457
+ $[77] = t26;
458
+ $[78] = t28;
459
+ $[79] = t29;
444
460
  } else {
445
- t28 = $[77];
461
+ t29 = $[79];
446
462
  }
447
- return t28;
463
+ return t29;
448
464
  }
449
465
  function _temp2(row_3, line_1) {
450
466
  return row_3.noNewline === undefined ? [] : [{
@@ -1,7 +1,7 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
+ import { ContextMenu, EDIT_SHORTCUTS, Kbd } from '@adecore/ui';
2
3
  import { Fragment, useEffect, useRef } from 'react';
3
4
  import { useTranslation } from 'react-i18next';
4
- import { ContextMenu, EDIT_SHORTCUTS, Kbd } from '@adecore/ui';
5
5
  import { menuGroupsOf } from './context-menu-rows.js';
6
6
  /*
7
7
  * The menu in groups: where to go, what refers to a symbol, what changes it, the app's own rows, the
@@ -1,8 +1,8 @@
1
- import { type ReactNode, type Ref } from 'react';
2
1
  import { type Editor, type EditorEngine, type EditorOptions } from '@adecore/editor';
2
+ import { type ReactNode, type Ref } from 'react';
3
3
  import { EditorLanguage, type EditorLanguageOptions } from './editor-language.ts';
4
- import type { ProjectLanguage } from './project-language.ts';
5
4
  import type { HoverView } from './popups.ts';
5
+ import type { ProjectLanguage } from './project-language.ts';
6
6
  import type { Timers } from './timers.ts';
7
7
  export interface EditorViewProps {
8
8
  engine: EditorEngine;