@lvce-editor/main-area-worker 9.42.0 → 9.43.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.
|
@@ -2987,7 +2987,7 @@ const getEditorInputUri = editorInput => {
|
|
|
2987
2987
|
|
|
2988
2988
|
const imageExtensions = new Set(['.avif', '.bmp', '.gif', '.ico', '.jpeg', '.jpg', '.png', '.svg', '.tif', '.tiff', '.webp']);
|
|
2989
2989
|
const videoExtensions = new Set(['.avi', '.m4v', '.mkv', '.mov', '.mp4', '.mpeg', '.mpg', '.ogv', '.webm']);
|
|
2990
|
-
const binaryFileSuffixes = ['.7z', '.apk', '.br', '.bz2', '.deb', '.gz', '.jar', '.pdf', '.rar', '.rpm', '.tar', '.tar.br', '.tar.bz2', '.tar.gz', '.tar.xz', '.tar.zst', '.tbr', '.tgz', '.war', '.xz', '.zip', '.zst'];
|
|
2990
|
+
const binaryFileSuffixes = ['.7z', '.apk', '.beam', '.br', '.bz2', '.deb', '.gz', '.jar', '.pdf', '.rar', '.rpm', '.tar', '.tar.br', '.tar.bz2', '.tar.gz', '.tar.xz', '.tar.zst', '.tbr', '.tgz', '.war', '.xz', '.zip', '.zst'];
|
|
2991
2991
|
const getPathEndIndex = pathName => {
|
|
2992
2992
|
const queryIndex = pathName.indexOf('?');
|
|
2993
2993
|
const hashIndex = pathName.indexOf('#');
|
|
@@ -4263,12 +4263,12 @@ const clampIndex = (value, min, max) => {
|
|
|
4263
4263
|
return Math.min(Math.max(value, min), max);
|
|
4264
4264
|
};
|
|
4265
4265
|
const getRestoredTab = tab => {
|
|
4266
|
-
return {
|
|
4266
|
+
return normalizeTabEditorInput({
|
|
4267
4267
|
...tab,
|
|
4268
4268
|
editorUid: -1,
|
|
4269
4269
|
errorMessage: '',
|
|
4270
4270
|
loadingState: undefined
|
|
4271
|
-
};
|
|
4271
|
+
});
|
|
4272
4272
|
};
|
|
4273
4273
|
const getStateWithoutLastClosedTab = state => {
|
|
4274
4274
|
const {
|