@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.
- package/dist/portsViewWorkerMain.js +12 -10
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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 =
|
|
2827
|
-
const portText = String(
|
|
2828
|
+
const getPortRowVirtualDom = visiblePort => {
|
|
2829
|
+
const portText = String(visiblePort.port);
|
|
2828
2830
|
return [{
|
|
2829
|
-
ariaRowIndex:
|
|
2831
|
+
ariaRowIndex: visiblePort.index + 2,
|
|
2830
2832
|
childCount: 5,
|
|
2831
|
-
className: getRowClassName(
|
|
2833
|
+
className: getRowClassName(visiblePort),
|
|
2832
2834
|
role: Row,
|
|
2833
2835
|
type: Div
|
|
2834
|
-
}, statusCell, ...getPortsStatusVirtualDom(
|
|
2836
|
+
}, statusCell, ...getPortsStatusVirtualDom(visiblePort.active, visiblePort.port), ...getTextCell(portText), {
|
|
2835
2837
|
childCount: 1,
|
|
2836
2838
|
className: PortsColumn,
|
|
2837
2839
|
role: Cell,
|
|
2838
|
-
title:
|
|
2840
|
+
title: visiblePort.forwardedAddress,
|
|
2839
2841
|
type: Div
|
|
2840
2842
|
}, {
|
|
2841
2843
|
childCount: 1,
|
|
2842
2844
|
className: 'PortsAddressLink',
|
|
2843
|
-
name: `port-address-${
|
|
2845
|
+
name: `port-address-${visiblePort.port}`,
|
|
2844
2846
|
role: Link,
|
|
2845
2847
|
tabIndex: Unfocusable,
|
|
2846
2848
|
type: A
|
|
2847
|
-
}, text(
|
|
2849
|
+
}, text(visiblePort.forwardedAddress), ...getTextCell(visiblePort.runningProcess), ...getTextCell(visiblePort.origin)];
|
|
2848
2850
|
};
|
|
2849
2851
|
|
|
2850
2852
|
const emptyBody = {
|