@lvce-editor/ports-view 0.13.1 → 0.14.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.
@@ -2514,12 +2514,14 @@ const set = rpc => {
2514
2514
  state.connected = true;
2515
2515
  };
2516
2516
 
2517
- const handleMessagePort = async port => {
2517
+ const handleMessagePort = async (port, setAsRendererProcess = true) => {
2518
2518
  const rpc = await create$4({
2519
2519
  commandMap: createDirectEventCommandMap(uid => invoke$1('Viewlet.requestRender', uid)),
2520
2520
  messagePort: port
2521
2521
  });
2522
- set(rpc);
2522
+ if (setAsRendererProcess) {
2523
+ set(rpc);
2524
+ }
2523
2525
  };
2524
2526
 
2525
2527
  const handleWheel = (state, deltaMode, deltaY) => {
@@ -2823,28 +2825,28 @@ const statusCell = {
2823
2825
  role: Cell,
2824
2826
  type: Div
2825
2827
  };
2826
- const getPortRowVirtualDom = port => {
2827
- const portText = String(port.port);
2828
+ const getPortRowVirtualDom = visiblePort => {
2829
+ const portText = String(visiblePort.port);
2828
2830
  return [{
2829
- ariaRowIndex: port.index + 2,
2831
+ ariaRowIndex: visiblePort.index + 2,
2830
2832
  childCount: 5,
2831
- className: getRowClassName(port),
2833
+ className: getRowClassName(visiblePort),
2832
2834
  role: Row,
2833
2835
  type: Div
2834
- }, statusCell, ...getPortsStatusVirtualDom(port.active, port.port), ...getTextCell(portText), {
2836
+ }, statusCell, ...getPortsStatusVirtualDom(visiblePort.active, visiblePort.port), ...getTextCell(portText), {
2835
2837
  childCount: 1,
2836
2838
  className: PortsColumn,
2837
2839
  role: Cell,
2838
- title: port.forwardedAddress,
2840
+ title: visiblePort.forwardedAddress,
2839
2841
  type: Div
2840
2842
  }, {
2841
2843
  childCount: 1,
2842
2844
  className: 'PortsAddressLink',
2843
- name: `port-address-${port.port}`,
2845
+ name: `port-address-${visiblePort.port}`,
2844
2846
  role: Link,
2845
2847
  tabIndex: Unfocusable,
2846
2848
  type: A
2847
- }, text(port.forwardedAddress), ...getTextCell(port.runningProcess), ...getTextCell(port.origin)];
2849
+ }, text(visiblePort.forwardedAddress), ...getTextCell(visiblePort.runningProcess), ...getTextCell(visiblePort.origin)];
2848
2850
  };
2849
2851
 
2850
2852
  const emptyBody = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/ports-view",
3
- "version": "0.13.1",
3
+ "version": "0.14.0",
4
4
  "description": "Ports View Worker",
5
5
  "repository": {
6
6
  "type": "git",