@lvce-editor/settings-view 2.23.0 → 2.24.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.
@@ -3358,7 +3358,7 @@ const set$1 = rpc => {
3358
3358
  state.connected = true;
3359
3359
  };
3360
3360
 
3361
- const handleMessagePort = async (port, viewletCommandMap) => {
3361
+ const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
3362
3362
  const executeViewletCommand = async (uid, command, ...args) => {
3363
3363
  const fn = viewletCommandMap[`Settings.${command}`];
3364
3364
  if (typeof fn !== 'function') {
@@ -3373,7 +3373,9 @@ const handleMessagePort = async (port, viewletCommandMap) => {
3373
3373
  },
3374
3374
  messagePort: port
3375
3375
  });
3376
- set$1(rpc);
3376
+ if (setAsRendererProcess) {
3377
+ set$1(rpc);
3378
+ }
3377
3379
  };
3378
3380
 
3379
3381
  const handleResizerPointerDown = (state, eventX, eventY) => {
@@ -5568,7 +5570,7 @@ const usePreviousSearchValue = state => {
5568
5570
  };
5569
5571
  };
5570
5572
 
5571
- const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
5573
+ const handleDirectMessagePort = (port, setAsRendererProcess = true) => handleMessagePort(port, commandMap, setAsRendererProcess);
5572
5574
  const commandMap = {
5573
5575
  'Initialize.initialize': initialize,
5574
5576
  'Settings.clear': wrapCommand(clear$1),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/settings-view",
3
- "version": "2.23.0",
3
+ "version": "2.24.0",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",