@lvce-editor/renderer-process 30.21.2 → 30.22.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.
@@ -1683,7 +1683,7 @@ const setPathName = pathName => {
1683
1683
  }
1684
1684
  history.pushState(null, '', pathName);
1685
1685
  };
1686
- const hydrate$4 = () => {
1686
+ const hydrate$3 = () => {
1687
1687
  // addEventListener('popstate', handlePopState)
1688
1688
  };
1689
1689
 
@@ -3417,7 +3417,7 @@ const scheduleExport = () => {
3417
3417
  const state$8 = {
3418
3418
  rpc: undefined
3419
3419
  };
3420
- const hydrate$3 = async () => {
3420
+ const hydrate$2 = async () => {
3421
3421
  const result = await launchRendererWorker();
3422
3422
  if (isError(result)) {
3423
3423
  state$8.rpc = undefined;
@@ -3460,7 +3460,7 @@ const invokeAndTransfer = (method, ...params) => {
3460
3460
  const RendererWorker = {
3461
3461
  __proto__: null,
3462
3462
  dispose: dispose$j,
3463
- hydrate: hydrate$3,
3463
+ hydrate: hydrate$2,
3464
3464
  invoke: invoke$1,
3465
3465
  invokeAndTransfer,
3466
3466
  send,
@@ -9566,7 +9566,7 @@ const commandMap = {
9566
9566
  'Layout.getBounds': getBounds,
9567
9567
  'Location.getHref': getHref,
9568
9568
  'Location.getPathName': getPathName,
9569
- 'Location.hydrate': hydrate$4,
9569
+ 'Location.hydrate': hydrate$3,
9570
9570
  'Location.setPathName': setPathName,
9571
9571
  'MeasureTextBlockHeight.measureTextBlockHeight': measureTextBlockHeight,
9572
9572
  'MeasureTextHeight.measureTextHeight': measureTextHeight,
@@ -9929,7 +9929,7 @@ const launchEditorWorker = async port => {
9929
9929
  }
9930
9930
  };
9931
9931
 
9932
- const hydrate$2 = async () => {
9932
+ const hydrate$1 = async () => {
9933
9933
  const {
9934
9934
  port1,
9935
9935
  port2
@@ -9945,44 +9945,6 @@ const hydrate$2 = async () => {
9945
9945
  return success(undefined);
9946
9946
  };
9947
9947
 
9948
- const getConfiguredExtensionHostWorkerUrl = () => {
9949
- return getConfiguredWorkerUrl('extensionHostWorkerUrl');
9950
- };
9951
-
9952
- const extensionHostWorkerUrl = getConfiguredExtensionHostWorkerUrl() || `${assetDir}/packages/renderer-worker/node_modules/@lvce-editor/extension-host-worker/dist/extensionHostWorkerMain.js`;
9953
-
9954
- const launchExtensionHostWorker = async port => {
9955
- const name = isElectron ? 'Extension Host (Electron)' : 'Extension Host';
9956
- try {
9957
- await create$u({
9958
- method: ModuleWorkerWithMessagePort,
9959
- name,
9960
- port,
9961
- url: extensionHostWorkerUrl
9962
- });
9963
- return success(undefined);
9964
- } catch (error$1) {
9965
- return error(error$1);
9966
- }
9967
- };
9968
-
9969
- const hydrate$1 = async () => {
9970
- const {
9971
- port1,
9972
- port2
9973
- } = new MessageChannel();
9974
- // TODO only launch port and send to renderer worker
9975
- const promise = launchExtensionHostWorker(port1);
9976
- const name = isElectron ? 'Extension Host (Electron)' : 'Extension Host';
9977
- set$7(name, port2);
9978
- const result = await promise;
9979
- if (isError(result)) {
9980
- remove$2(name);
9981
- return result;
9982
- }
9983
- return success(undefined);
9984
- };
9985
-
9986
9948
  const getConfiguredSyntaxHighlightingWorkerUrl = () => {
9987
9949
  return getConfiguredWorkerUrl('syntaxHighlightingWorkerUrl');
9988
9950
  };
@@ -10019,7 +9981,7 @@ const hydrate = async () => {
10019
9981
  return success(undefined);
10020
9982
  };
10021
9983
 
10022
- const workerFns = [hydrate$3, hydrate$2, hydrate, hydrate$1];
9984
+ const workerFns = [hydrate$2, hydrate$1, hydrate];
10023
9985
  const call = fn => {
10024
9986
  return fn();
10025
9987
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.21.2",
3
+ "version": "30.22.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"