@lvce-editor/renderer-process 30.64.1 → 30.64.3

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.
@@ -9274,7 +9274,7 @@ const setInputValues = (viewletId, items) => {
9274
9274
  const setCheckboxValue = (viewletId, name, value) => {
9275
9275
  setElementProperty(viewletId, name, 'checked', value);
9276
9276
  };
9277
- const setSelectionByName = (viewletId, name, start, end) => {
9277
+ const setSelectionByName = (viewletId, name, start, end, expectedValue) => {
9278
9278
  const selector = `[name="${name}"]`;
9279
9279
  const instance = get$b(viewletId);
9280
9280
  if (!instance) {
@@ -9287,6 +9287,10 @@ const setSelectionByName = (viewletId, name, start, end) => {
9287
9287
  if (!$Element) {
9288
9288
  return;
9289
9289
  }
9290
+ // A focus response may arrive after the user has already edited the input.
9291
+ if (expectedValue !== undefined && $Element.value !== expectedValue) {
9292
+ return;
9293
+ }
9290
9294
  $Element.selectionStart = start;
9291
9295
  $Element.selectionEnd = end;
9292
9296
  };
@@ -11415,6 +11419,13 @@ const handleMessagePort = async (port, rpcId) => {
11415
11419
  }
11416
11420
  };
11417
11421
 
11422
+ const openUri = uri => {
11423
+ return invoke$1('Main.openUri', uri);
11424
+ };
11425
+ const setUri = uri => {
11426
+ return invoke$1('Workspace.setUri', uri);
11427
+ };
11428
+
11418
11429
  const set = ($Iframe, permissionPolicy) => {
11419
11430
  if (!permissionPolicy) {
11420
11431
  return;
@@ -11767,6 +11778,7 @@ const commandMap = {
11767
11778
  'Location.hydrate': hydrate,
11768
11779
  'Location.setPathName': setPathName,
11769
11780
  'Location.setWorkspaceUri': setWorkspaceUri,
11781
+ 'Main.openUri': openUri,
11770
11782
  'MeasureTextBlockHeight.measureTextBlockHeight': measureTextBlockHeight,
11771
11783
  'MeasureTextHeight.measureTextHeight': measureTextHeight,
11772
11784
  'Menu.focusIndex': focusIndex,
@@ -11864,7 +11876,8 @@ const commandMap = {
11864
11876
  'Window.toggleFullScreen': toggleFullScreen,
11865
11877
  'Window.unmaximize': unmaximize,
11866
11878
  'WindowTitle.set': set$1,
11867
- 'Workbench.setModernUi': setModernUi
11879
+ 'Workbench.setModernUi': setModernUi,
11880
+ 'Workspace.setUri': setUri
11868
11881
  };
11869
11882
 
11870
11883
  const RE_AT = /^\s+at/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.64.1",
3
+ "version": "30.64.3",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"