@lvce-editor/renderer-process 30.25.0 → 30.25.2

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.
@@ -1224,6 +1224,7 @@ const unwrapItemFile = async item => {
1224
1224
  // @ts-ignore
1225
1225
  const file = await item.getAsFileSystemHandle();
1226
1226
  return {
1227
+ file: item.getAsFile(),
1227
1228
  kind: 'file',
1228
1229
  type: item.type,
1229
1230
  value: file
@@ -378,6 +378,7 @@ const unwrapItemFile = async item => {
378
378
  // @ts-ignore
379
379
  const file = await item.getAsFileSystemHandle();
380
380
  return {
381
+ file: item.getAsFile(),
381
382
  kind: 'file',
382
383
  type: item.type,
383
384
  value: file
@@ -8949,7 +8950,7 @@ const focusSelector = (viewletId, selector) => {
8949
8950
  const {
8950
8951
  $Viewlet
8951
8952
  } = instance.state;
8952
- const $Element = $Viewlet.querySelector(selector);
8953
+ const $Element = $Viewlet.matches(selector) ? $Viewlet : $Viewlet.querySelector(selector);
8953
8954
  if (!$Element) {
8954
8955
  return;
8955
8956
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.25.0",
3
+ "version": "30.25.2",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"