@lvce-editor/hover-worker 2.6.0 → 2.8.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.
@@ -1008,25 +1008,6 @@ const WebWorkerRpcClient = {
1008
1008
  __proto__: null,
1009
1009
  create: create$1$1
1010
1010
  };
1011
- const createMockRpc = ({
1012
- commandMap
1013
- }) => {
1014
- const invocations = [];
1015
- const invoke = (method, ...params) => {
1016
- invocations.push([method, ...params]);
1017
- const command = commandMap[method];
1018
- if (!command) {
1019
- throw new Error(`command ${method} not found`);
1020
- }
1021
- return command(...params);
1022
- };
1023
- const mockRpc = {
1024
- invocations,
1025
- invoke,
1026
- invokeAndTransfer: invoke
1027
- };
1028
- return mockRpc;
1029
- };
1030
1011
 
1031
1012
  const toCommandId = key => {
1032
1013
  const dotIndex = key.indexOf('.');
@@ -1113,12 +1094,28 @@ const terminate = () => {
1113
1094
  globalThis.close();
1114
1095
  };
1115
1096
 
1116
- const Text = 12;
1117
-
1118
1097
  const EditorWorker$1 = 99;
1119
1098
  const ExtensionHostWorker = 44;
1120
1099
 
1121
- const SetFocusContext = 'Viewlet.setFocusContext';
1100
+ const createMockRpc = ({
1101
+ commandMap
1102
+ }) => {
1103
+ const invocations = [];
1104
+ const invoke = (method, ...params) => {
1105
+ invocations.push([method, ...params]);
1106
+ const command = commandMap[method];
1107
+ if (!command) {
1108
+ throw new Error(`command ${method} not found`);
1109
+ }
1110
+ return command(...params);
1111
+ };
1112
+ const mockRpc = {
1113
+ invocations,
1114
+ invoke,
1115
+ invokeAndTransfer: invoke
1116
+ };
1117
+ return mockRpc;
1118
+ };
1122
1119
 
1123
1120
  const rpcs = Object.create(null);
1124
1121
  const set$5 = (id, rpc) => {
@@ -1781,6 +1778,10 @@ const renderEventListeners = state => {
1781
1778
  return [SetEventListeners, uid, eventListeners];
1782
1779
  };
1783
1780
 
1781
+ const Text = 12;
1782
+
1783
+ const SetFocusContext = 'Viewlet.setFocusContext';
1784
+
1784
1785
  const renderFocusContext = (oldState, newState) => {
1785
1786
  return [SetFocusContext, FocusEditorRename];
1786
1787
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/hover-worker",
3
- "version": "2.6.0",
3
+ "version": "2.8.0",
4
4
  "description": "Web Worker for the find widget in Lvce Editor",
5
5
  "repository": {
6
6
  "type": "git",