@lvce-editor/explorer-view 7.19.0 → 7.20.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/explorerViewWorkerMain.js +30 -18
- package/package.json +1 -1
|
@@ -2251,7 +2251,7 @@ const openUri = async (uri, focus, options) => {
|
|
|
2251
2251
|
type: 'editor',
|
|
2252
2252
|
uri
|
|
2253
2253
|
},
|
|
2254
|
-
|
|
2254
|
+
focus,
|
|
2255
2255
|
preview: options.preview ?? false
|
|
2256
2256
|
});
|
|
2257
2257
|
return;
|
|
@@ -5343,7 +5343,16 @@ const handleDragEnd = state => {
|
|
|
5343
5343
|
};
|
|
5344
5344
|
|
|
5345
5345
|
const handleDragLeave = state => {
|
|
5346
|
-
|
|
5346
|
+
const {
|
|
5347
|
+
dropTargets
|
|
5348
|
+
} = state;
|
|
5349
|
+
if (dropTargets.length === 0) {
|
|
5350
|
+
return state;
|
|
5351
|
+
}
|
|
5352
|
+
return {
|
|
5353
|
+
...state,
|
|
5354
|
+
dropTargets: []
|
|
5355
|
+
};
|
|
5347
5356
|
};
|
|
5348
5357
|
|
|
5349
5358
|
const canBeDroppedInto = dirent => {
|
|
@@ -7049,15 +7058,16 @@ const Input = 6;
|
|
|
7049
7058
|
const Img = 17;
|
|
7050
7059
|
const P = 50;
|
|
7051
7060
|
|
|
7061
|
+
const errorMessageNode = {
|
|
7062
|
+
childCount: 1,
|
|
7063
|
+
className: mergeClassNames(ExplorerErrorMessage),
|
|
7064
|
+
type: Div
|
|
7065
|
+
};
|
|
7052
7066
|
const getErrorMessageDom = errorMessage => {
|
|
7053
7067
|
if (!errorMessage) {
|
|
7054
7068
|
return [];
|
|
7055
7069
|
}
|
|
7056
|
-
return [
|
|
7057
|
-
childCount: 1,
|
|
7058
|
-
className: mergeClassNames(ExplorerErrorMessage),
|
|
7059
|
-
type: Div
|
|
7060
|
-
}, text(errorMessage)];
|
|
7070
|
+
return [errorMessageNode, text(errorMessage)];
|
|
7061
7071
|
};
|
|
7062
7072
|
|
|
7063
7073
|
const HandleButtonClick = 18;
|
|
@@ -7180,16 +7190,17 @@ const label = {
|
|
|
7180
7190
|
className: Label,
|
|
7181
7191
|
type: Div
|
|
7182
7192
|
};
|
|
7193
|
+
const dimmedLabel = {
|
|
7194
|
+
childCount: 1,
|
|
7195
|
+
className: mergeClassNames(Label, LabelCut),
|
|
7196
|
+
type: Div
|
|
7197
|
+
};
|
|
7183
7198
|
const getLabelDom = (isEditing, name, isDimmed) => {
|
|
7184
7199
|
if (isEditing) {
|
|
7185
7200
|
return [];
|
|
7186
7201
|
}
|
|
7187
7202
|
if (isDimmed) {
|
|
7188
|
-
return [
|
|
7189
|
-
childCount: 1,
|
|
7190
|
-
className: mergeClassNames(Label, LabelCut),
|
|
7191
|
-
type: Div
|
|
7192
|
-
}, text(name)];
|
|
7203
|
+
return [dimmedLabel, text(name)];
|
|
7193
7204
|
}
|
|
7194
7205
|
return [label, text(name)];
|
|
7195
7206
|
};
|
|
@@ -7315,17 +7326,18 @@ const scrollBarThumbNode = {
|
|
|
7315
7326
|
className: ScrollBarThumb,
|
|
7316
7327
|
type: Div
|
|
7317
7328
|
};
|
|
7329
|
+
const scrollBarNode = {
|
|
7330
|
+
childCount: 1,
|
|
7331
|
+
className: mergeClassNames(ScrollBar, ScrollBarSmall),
|
|
7332
|
+
onPointerDown: HandleScrollBarPointerDown,
|
|
7333
|
+
type: Div
|
|
7334
|
+
};
|
|
7318
7335
|
const getScrollBarVirtualDom = scrollBarHeight => {
|
|
7319
7336
|
const shouldShowScrollbar = scrollBarHeight > 0;
|
|
7320
7337
|
if (!shouldShowScrollbar) {
|
|
7321
7338
|
return [];
|
|
7322
7339
|
}
|
|
7323
|
-
return [
|
|
7324
|
-
childCount: 1,
|
|
7325
|
-
className: mergeClassNames(ScrollBar, ScrollBarSmall),
|
|
7326
|
-
onPointerDown: HandleScrollBarPointerDown,
|
|
7327
|
-
type: Div
|
|
7328
|
-
}, scrollBarThumbNode];
|
|
7340
|
+
return [scrollBarNode, scrollBarThumbNode];
|
|
7329
7341
|
};
|
|
7330
7342
|
|
|
7331
7343
|
const getParentNode = childCount => {
|