@lvce-editor/renderer-process 30.38.0 → 30.39.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.
@@ -3659,14 +3659,23 @@ const create$w = async ({
3659
3659
  name,
3660
3660
  port,
3661
3661
  raw,
3662
+ rpcId,
3662
3663
  url
3663
- }, createRpc = create$y) => {
3664
- const rpc = await createRpc({
3664
+ }, createTransferredRpc = create$y, createNativeRpc = create$z) => {
3665
+ const rpc = await (rpcId === undefined ? createTransferredRpc({
3665
3666
  commandMap: {},
3666
3667
  name,
3667
3668
  port,
3668
3669
  url
3669
- });
3670
+ }) : createNativeRpc({
3671
+ commandMap: {},
3672
+ name,
3673
+ url
3674
+ }));
3675
+ if (rpcId !== undefined) {
3676
+ await rpc.invokeAndTransfer('initialize', 'message-port', port);
3677
+ registerRpc(rpcId, rpc);
3678
+ }
3670
3679
  const worker = rpc.ipc?._rawIpc;
3671
3680
  if (typeof id === 'number' && raw && worker) {
3672
3681
  set$7(id, worker);
@@ -4794,6 +4803,8 @@ const start = async (id, options) => {
4794
4803
 
4795
4804
  const getEventClass = eventType => {
4796
4805
  switch (eventType) {
4806
+ case ContextMenu:
4807
+ return MouseEvent;
4797
4808
  case PointerDown:
4798
4809
  case PointerMove:
4799
4810
  case PointerUp:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.38.0",
3
+ "version": "30.39.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"