@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.
- package/dist/AnchoredPopup.d.ts +1 -1
- package/dist/AnchoredPopup.js +27 -12
- package/dist/AttributionCard.d.ts +1 -1
- package/dist/BaselineStatus.js +1 -1
- package/dist/CallHierarchyPanel.js +11 -10
- package/dist/ChangeReview.d.ts +1 -1
- package/dist/CodeAuthorsCard.js +2 -2
- package/dist/CompletionPopup.js +18 -14
- package/dist/DiffView.d.ts +2 -2
- package/dist/DiffView.js +159 -143
- package/dist/EditorContextMenu.js +1 -1
- package/dist/EditorView.d.ts +2 -2
- package/dist/EditorView.js +97 -81
- package/dist/FindReplace.js +3 -3
- package/dist/HoverCard.d.ts +3 -3
- package/dist/HoverCard.js +3 -3
- package/dist/HoverSections.js +1 -1
- package/dist/LanguagePopups.js +1 -1
- package/dist/Markdown.js +15 -3
- package/dist/PeekPanel.js +124 -103
- package/dist/PickPopup.js +8 -4
- package/dist/RenameCard.js +7 -7
- package/dist/RenderedDocs.d.ts +1 -1
- package/dist/RenderedDocs.js +1 -1
- package/dist/SplitDiffView.js +21 -4
- package/dist/SymbolPicker.js +93 -89
- package/dist/WrapCard.js +1 -1
- package/dist/call-hierarchy.d.ts +1 -1
- package/dist/call-hierarchy.js +3 -3
- package/dist/code-actions.js +2 -2
- package/dist/code-vision.d.ts +1 -1
- package/dist/completion-model.d.ts +1 -1
- package/dist/completion-model.js +2 -2
- package/dist/completion.d.ts +1 -1
- package/dist/completion.js +12 -12
- package/dist/diagnostics.d.ts +1 -1
- package/dist/diagnostics.js +1 -1
- package/dist/diff-overlays.js +2 -2
- package/dist/editor-language.d.ts +12 -12
- package/dist/editor-language.js +10 -10
- package/dist/editor-react.css +4 -4
- package/dist/highlights.d.ts +1 -1
- package/dist/highlights.js +2 -2
- package/dist/host-types.d.ts +4 -4
- package/dist/hover.js +1 -1
- package/dist/inlay-hints.js +1 -1
- package/dist/live-templates.js +1 -1
- package/dist/markup.js +1 -1
- package/dist/navigation.d.ts +1 -1
- package/dist/navigation.js +3 -3
- package/dist/peek.js +1 -1
- package/dist/popups.d.ts +5 -5
- package/dist/project-language.d.ts +4 -4
- package/dist/project-language.js +5 -5
- package/dist/rename.js +1 -1
- package/dist/rendered-docs.d.ts +1 -1
- package/dist/rendered-docs.js +1 -1
- package/dist/shortcut-keys.d.ts +1 -1
- package/dist/signature.js +1 -1
- package/dist/snippet-field-transforms.d.ts +2 -2
- package/dist/snippet-insert.js +3 -3
- package/dist/snippet-session.d.ts +2 -2
- package/dist/snippet-session.js +5 -5
- package/dist/snippet-transform-queue.d.ts +1 -1
- package/dist/surround.js +1 -1
- package/dist/symbol-picker.js +2 -2
- package/dist/templates.js +1 -1
- package/dist/use-problem-counts.d.ts +1 -1
- package/package.json +6 -6
- package/src/AnchoredPopup.tsx +7 -3
- package/src/AttributionCard.tsx +1 -1
- package/src/BaselineStatus.tsx +1 -1
- package/src/CallHierarchyPanel.tsx +13 -12
- package/src/ChangeReview.tsx +1 -1
- package/src/CodeAuthorsCard.tsx +2 -2
- package/src/CompletionPopup.tsx +16 -13
- package/src/DiffView.tsx +12 -6
- package/src/EditorContextMenu.tsx +2 -2
- package/src/EditorView.tsx +14 -6
- package/src/FindReplace.tsx +3 -3
- package/src/HoverCard.tsx +7 -7
- package/src/HoverSections.tsx +1 -1
- package/src/LanguagePopups.tsx +3 -3
- package/src/Markdown.tsx +13 -2
- package/src/PeekPanel.tsx +13 -13
- package/src/PickPopup.tsx +6 -5
- package/src/RenameCard.tsx +8 -8
- package/src/RenderedDocs.tsx +3 -3
- package/src/SplitDiffView.tsx +14 -5
- package/src/SymbolPicker.tsx +6 -6
- package/src/WrapCard.tsx +2 -2
- package/src/call-hierarchy.ts +5 -5
- package/src/code-actions.ts +3 -3
- package/src/code-authors.ts +1 -1
- package/src/code-vision.ts +3 -3
- package/src/completion-model.ts +3 -3
- package/src/completion.ts +15 -15
- package/src/diagnostics.ts +4 -4
- package/src/diff-overlays.tsx +4 -4
- package/src/editor-language.ts +13 -13
- package/src/editor-react.css +4 -4
- package/src/format-on-type.ts +1 -1
- package/src/highlights.ts +3 -3
- package/src/host-types.ts +4 -4
- package/src/hover.ts +3 -3
- package/src/inlay-hints.ts +1 -1
- package/src/line-edits.ts +1 -1
- package/src/live-templates.ts +2 -2
- package/src/markup.ts +2 -2
- package/src/navigation.ts +5 -5
- package/src/patch-decorations.ts +1 -1
- package/src/peek.ts +3 -3
- package/src/pick.ts +1 -1
- package/src/popups.ts +5 -5
- package/src/postfix.ts +1 -1
- package/src/project-language.ts +7 -7
- package/src/proposal-model.ts +1 -1
- package/src/rename.ts +3 -3
- package/src/rendered-docs.ts +2 -2
- package/src/shortcut-keys.ts +1 -1
- package/src/signature.ts +3 -3
- package/src/snippet-field-transforms.ts +2 -2
- package/src/snippet-insert.ts +3 -3
- package/src/snippet-session.ts +7 -7
- package/src/snippet-transform-queue.ts +1 -1
- package/src/surround.ts +1 -1
- package/src/symbol-picker-model.ts +1 -1
- package/src/symbol-picker.ts +3 -3
- package/src/templates.ts +1 -1
- package/src/use-problem-counts.ts +1 -1
- 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 {
|
|
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 {
|
|
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(
|
|
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]
|
|
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
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
$[
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
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
|
-
|
|
119
|
+
t8 = $[20];
|
|
108
120
|
}
|
|
109
|
-
useLayoutEffect(
|
|
110
|
-
let
|
|
121
|
+
useLayoutEffect(t8);
|
|
122
|
+
let t10;
|
|
111
123
|
let t9;
|
|
112
|
-
if ($[
|
|
113
|
-
|
|
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
|
-
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
172
|
+
t10 = [engine];
|
|
173
|
+
$[21] = engine;
|
|
174
|
+
$[22] = t10;
|
|
175
|
+
$[23] = t9;
|
|
162
176
|
} else {
|
|
163
|
-
|
|
164
|
-
t9 = $[
|
|
177
|
+
t10 = $[22];
|
|
178
|
+
t9 = $[23];
|
|
165
179
|
}
|
|
166
|
-
useLayoutEffect(
|
|
167
|
-
let t10;
|
|
180
|
+
useLayoutEffect(t9, t10);
|
|
168
181
|
let t11;
|
|
169
|
-
|
|
170
|
-
|
|
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(
|
|
214
|
+
rows.set(display.gaps.map(t13 => {
|
|
201
215
|
const {
|
|
202
216
|
before,
|
|
203
217
|
row: row_2
|
|
204
|
-
} =
|
|
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
|
-
|
|
215
|
-
$[
|
|
216
|
-
$[
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
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(
|
|
227
|
-
let t12;
|
|
240
|
+
useLayoutEffect(t11, t12);
|
|
228
241
|
let t13;
|
|
229
|
-
|
|
230
|
-
|
|
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
|
-
|
|
253
|
-
$[
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
256
|
-
$[
|
|
257
|
-
$[
|
|
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(
|
|
265
|
-
let t14;
|
|
278
|
+
useLayoutEffect(t13, t14);
|
|
266
279
|
let t15;
|
|
267
|
-
|
|
268
|
-
|
|
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
|
-
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
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(
|
|
301
|
-
let
|
|
302
|
-
if ($[
|
|
303
|
-
|
|
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
|
-
$[
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
330
|
+
$[45] = engine;
|
|
331
|
+
$[46] = mounted;
|
|
332
|
+
$[47] = tokens;
|
|
333
|
+
$[48] = t17;
|
|
320
334
|
} else {
|
|
321
|
-
|
|
335
|
+
t17 = $[48];
|
|
322
336
|
}
|
|
323
|
-
let
|
|
324
|
-
if ($[
|
|
325
|
-
|
|
326
|
-
$[
|
|
327
|
-
$[
|
|
328
|
-
$[
|
|
329
|
-
$[
|
|
330
|
-
$[
|
|
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
|
-
|
|
346
|
+
t18 = $[53];
|
|
333
347
|
}
|
|
334
|
-
useLayoutEffect(
|
|
335
|
-
let t18;
|
|
348
|
+
useLayoutEffect(t17, t18);
|
|
336
349
|
let t19;
|
|
337
|
-
|
|
338
|
-
|
|
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
|
-
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
346
|
-
$[
|
|
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(
|
|
354
|
-
let t20;
|
|
367
|
+
useLayoutEffect(t19, t20);
|
|
355
368
|
let t21;
|
|
356
|
-
|
|
357
|
-
|
|
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
|
-
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
$[
|
|
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(
|
|
396
|
+
useLayoutEffect(t21, t22);
|
|
383
397
|
const limit = maxHeight !== undefined && Number.isFinite(maxHeight) && maxHeight > 0 ? maxHeight : Infinity;
|
|
384
|
-
const
|
|
385
|
-
const
|
|
386
|
-
const
|
|
387
|
-
let
|
|
388
|
-
if ($[
|
|
389
|
-
|
|
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:
|
|
406
|
+
height: t25
|
|
393
407
|
};
|
|
394
|
-
$[63] = t24;
|
|
395
408
|
$[64] = t25;
|
|
409
|
+
$[65] = t26;
|
|
396
410
|
} else {
|
|
397
|
-
|
|
411
|
+
t26 = $[65];
|
|
398
412
|
}
|
|
399
|
-
let
|
|
400
|
-
if ($[
|
|
401
|
-
|
|
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
|
-
$[
|
|
423
|
+
$[66] = t27;
|
|
409
424
|
} else {
|
|
410
|
-
|
|
425
|
+
t27 = $[66];
|
|
411
426
|
}
|
|
412
|
-
let
|
|
413
|
-
if ($[
|
|
414
|
-
|
|
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
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
435
|
+
$[67] = blocked;
|
|
436
|
+
$[68] = display;
|
|
437
|
+
$[69] = engine;
|
|
438
|
+
$[70] = mounted;
|
|
439
|
+
$[71] = unfold;
|
|
440
|
+
$[72] = t28;
|
|
426
441
|
} else {
|
|
427
|
-
|
|
442
|
+
t28 = $[72];
|
|
428
443
|
}
|
|
429
|
-
let
|
|
430
|
-
if ($[
|
|
431
|
-
|
|
432
|
-
className:
|
|
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":
|
|
435
|
-
style:
|
|
436
|
-
children: [
|
|
449
|
+
"data-scroll": t24,
|
|
450
|
+
style: t26,
|
|
451
|
+
children: [t27, t28, scrollbars]
|
|
437
452
|
});
|
|
438
|
-
$[
|
|
439
|
-
$[
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
443
|
-
$[
|
|
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
|
-
|
|
461
|
+
t29 = $[79];
|
|
446
462
|
}
|
|
447
|
-
return
|
|
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
|
package/dist/EditorView.d.ts
CHANGED
|
@@ -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;
|