@lvce-editor/renderer-process 30.82.2 → 30.82.3

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.
@@ -11213,12 +11213,21 @@ const removeWorkspaceUri = () => {
11213
11213
  const isChatPath = pathName => {
11214
11214
  return /(?:^|\/)chat\/?$/.test(pathName);
11215
11215
  };
11216
+ const isBoardPath = pathName => {
11217
+ return /(?:^|\/)board\/?$/.test(pathName);
11218
+ };
11219
+ const executeExtensionCommand = command => {
11220
+ send$1('ExtensionHost.executeCommand', command);
11221
+ };
11216
11222
  const handlePopState = () => {
11217
11223
  const pathName = getPathName();
11218
- if (isChatPath(pathName)) {
11224
+ if (isBoardPath(pathName)) {
11225
+ executeExtensionCommand('chat2.showBoardLayout');
11226
+ } else if (isChatPath(pathName)) {
11219
11227
  send$1('Layout.enterAiNativeLayout');
11220
- } else if (isChatPath(state$3.lastPathName)) {
11221
- send$1('Layout.leaveSideBarFocusMode');
11228
+ executeExtensionCommand('chat2.show');
11229
+ } else if (isChatPath(state$3.lastPathName) || isBoardPath(state$3.lastPathName)) {
11230
+ executeExtensionCommand('chat2.showIdeLayout');
11222
11231
  }
11223
11232
  state$3.lastPathName = pathName;
11224
11233
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.82.2",
3
+ "version": "30.82.3",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"