@lvce-editor/main-area-worker 9.74.4 → 9.74.5
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.
|
@@ -7320,6 +7320,13 @@ const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcessFa
|
|
|
7320
7320
|
};
|
|
7321
7321
|
const rpc = await create$8({
|
|
7322
7322
|
commandMap: {
|
|
7323
|
+
'MainArea.hasOpenTextEditor': async uid => {
|
|
7324
|
+
const fn = viewletCommandMap['MainArea.hasOpenTextEditor'];
|
|
7325
|
+
if (typeof fn !== 'function') {
|
|
7326
|
+
throw new TypeError('Viewlet getter not found: hasOpenTextEditor');
|
|
7327
|
+
}
|
|
7328
|
+
return fn(uid);
|
|
7329
|
+
},
|
|
7323
7330
|
'Viewlet.executeViewletCommand': executeViewletCommand
|
|
7324
7331
|
},
|
|
7325
7332
|
messagePort: port
|