@lvce-editor/extension-management-worker 4.54.0 → 4.56.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.
@@ -1585,7 +1585,8 @@ const getNodeRpcInfo = async (extensionId, rpcId) => {
1585
1585
  throw new Error(`Extension ${extensionId} has no declared rpcs`);
1586
1586
  }
1587
1587
  if (!extension.builtin) {
1588
- throw new Error(`Node rpc ${rpcId} is only available to built-in extensions`);
1588
+ // TODO
1589
+ console.warn(`Node rpc ${rpcId} is only available to built-in extensions`);
1589
1590
  }
1590
1591
  const rpc = getDeclaredNodeRpc(extension, rpcId);
1591
1592
  const extensionRoot = await getExtensionRoot(extension);
@@ -4346,6 +4347,19 @@ const uninstallExtension = async () => {
4346
4347
  await invalidateExtensionsCache();
4347
4348
  };
4348
4349
 
4350
+ const startWebRtcAudioStream = async options => {
4351
+ return await invokeAndTransfer$1('WebView.compatRendererProcessInvokeAndTransfer', 'WebRtc.startWebRtcAudioStream', options);
4352
+ };
4353
+ const stopWebRtcAudioStream = async uid => {
4354
+ return await invoke$3('WebView.compatRendererProcessInvoke', 'WebRtc.stopWebRtcAudioStream', uid);
4355
+ };
4356
+ const setRemoteDescription = async options => {
4357
+ await invoke$3('WebView.compatRendererProcessInvoke', 'WebRtc.setRemoteDescription', options);
4358
+ };
4359
+ const readMicLevels = async options => {
4360
+ return await invoke$3('WebView.compatRendererProcessInvoke', 'WebRtc.readMicLevels', options);
4361
+ };
4362
+
4349
4363
  /* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */
4350
4364
 
4351
4365
  const wrapCommand = command => {
@@ -4450,7 +4464,11 @@ const commandMap = {
4450
4464
  'Extensions.setPreference': setPreference,
4451
4465
  'Extensions.showViewContextMenu': showViewContextMenu,
4452
4466
  'Extensions.uninstall': uninstallExtension,
4453
- 'StatusBar.handleChange': handleChange
4467
+ 'StatusBar.handleChange': handleChange,
4468
+ 'WebRtc.readMicLevels': readMicLevels,
4469
+ 'WebRtc.setRemoteDescription': setRemoteDescription,
4470
+ 'WebRtc.startWebRtcAudioStream': startWebRtcAudioStream,
4471
+ 'WebRtc.stopWebRtcAudioStream': stopWebRtcAudioStream
4454
4472
  };
4455
4473
 
4456
4474
  const initializeAuthWorker = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-management-worker",
3
- "version": "4.54.0",
3
+ "version": "4.56.0",
4
4
  "description": "Webworker for the Extension Management functionality in Lvce Editor.",
5
5
  "keywords": [
6
6
  "web-worker"