@lvce-editor/renderer-process 12.5.0 → 12.6.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/rendererProcessMain.js +25 -14
- package/package.json +1 -1
|
@@ -98,7 +98,8 @@ const getModuleId = commandId => {
|
|
|
98
98
|
case 'FilePicker.showSaveFilePicker':
|
|
99
99
|
return FilePicker;
|
|
100
100
|
case 'FileSystemHandle.requestPermission':
|
|
101
|
-
case 'FileSystemHandle.
|
|
101
|
+
case 'FileSystemHandle.requestPermission':
|
|
102
|
+
case 'FileSystemHandle.addFileHandle':
|
|
102
103
|
return FileSystemHandle;
|
|
103
104
|
case 'ImagePreview.create':
|
|
104
105
|
case 'ImagePreview.dispose':
|
|
@@ -1690,16 +1691,6 @@ const applyPatch = ($Element, patches) => {
|
|
|
1690
1691
|
}
|
|
1691
1692
|
}
|
|
1692
1693
|
};
|
|
1693
|
-
let ignore = false;
|
|
1694
|
-
const startIgnore = () => {
|
|
1695
|
-
ignore = true;
|
|
1696
|
-
};
|
|
1697
|
-
const stopIgnore = () => {
|
|
1698
|
-
ignore = false;
|
|
1699
|
-
};
|
|
1700
|
-
const enabled = () => {
|
|
1701
|
-
return ignore;
|
|
1702
|
-
};
|
|
1703
1694
|
let id = 0;
|
|
1704
1695
|
const create$H = () => {
|
|
1705
1696
|
return ++id;
|
|
@@ -1720,6 +1711,20 @@ const add = promise => {
|
|
|
1720
1711
|
state$8[id] = promise;
|
|
1721
1712
|
return id;
|
|
1722
1713
|
};
|
|
1714
|
+
const addFileHandle$1 = fileHandle => {
|
|
1715
|
+
const promise = Promise.resolve(fileHandle);
|
|
1716
|
+
return add(promise);
|
|
1717
|
+
};
|
|
1718
|
+
let ignore = false;
|
|
1719
|
+
const startIgnore = () => {
|
|
1720
|
+
ignore = true;
|
|
1721
|
+
};
|
|
1722
|
+
const stopIgnore = () => {
|
|
1723
|
+
ignore = false;
|
|
1724
|
+
};
|
|
1725
|
+
const enabled = () => {
|
|
1726
|
+
return ignore;
|
|
1727
|
+
};
|
|
1723
1728
|
const handleDataTransferFiles = event => {
|
|
1724
1729
|
const items = [...event.dataTransfer.items];
|
|
1725
1730
|
const promises = items.map(item => item.getAsFileSystemHandle());
|
|
@@ -1883,6 +1888,9 @@ const rememberFocus$1 = ($Viewlet, dom, eventMap, uid = 0) => {
|
|
|
1883
1888
|
const $Previous = $Hidden.firstChild;
|
|
1884
1889
|
$Previous.className = $NewFocused.className;
|
|
1885
1890
|
$Previous.placeholder = $NewFocused.placeholder;
|
|
1891
|
+
if ($NewFocused.childNodes) {
|
|
1892
|
+
$Previous.append(...$NewFocused.childNodes);
|
|
1893
|
+
}
|
|
1886
1894
|
$NewFocused.replaceWith($Previous);
|
|
1887
1895
|
}
|
|
1888
1896
|
}
|
|
@@ -4270,9 +4278,11 @@ const requestPermission = (handle, options) => {
|
|
|
4270
4278
|
return handle.requestPermission(options);
|
|
4271
4279
|
};
|
|
4272
4280
|
const getFileHandles = ids => {
|
|
4273
|
-
// @ts-ignore
|
|
4274
4281
|
return getFileHandles$1(ids);
|
|
4275
4282
|
};
|
|
4283
|
+
const addFileHandle = fileHandle => {
|
|
4284
|
+
return addFileHandle$1(fileHandle);
|
|
4285
|
+
};
|
|
4276
4286
|
|
|
4277
4287
|
const name$w = 'FileHandles';
|
|
4278
4288
|
const Commands$x = {
|
|
@@ -4501,8 +4511,9 @@ const FilePicker_ipc = {
|
|
|
4501
4511
|
|
|
4502
4512
|
const name$q = 'FileSystemHandle';
|
|
4503
4513
|
const Commands$r = {
|
|
4504
|
-
|
|
4505
|
-
getFileHandles: getFileHandles
|
|
4514
|
+
addFileHandle: addFileHandle,
|
|
4515
|
+
getFileHandles: getFileHandles,
|
|
4516
|
+
requestPermission: requestPermission
|
|
4506
4517
|
};
|
|
4507
4518
|
|
|
4508
4519
|
const FileSystemHandle_ipc = {
|